diff --git a/.eslintignore b/.eslintignore index 71e5bcb19..c1627189e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -721,6 +721,7 @@ packages/lib/models/Search.js packages/lib/models/Setting.test.js packages/lib/models/Setting.js packages/lib/models/SmartFilter.js +packages/lib/models/Tag.test.js packages/lib/models/Tag.js packages/lib/models/dateTimeFormats.test.js packages/lib/models/settings/FileHandler.js diff --git a/.gitignore b/.gitignore index 708de6c1e..69c59facd 100644 --- a/.gitignore +++ b/.gitignore @@ -701,6 +701,7 @@ packages/lib/models/Search.js packages/lib/models/Setting.test.js packages/lib/models/Setting.js packages/lib/models/SmartFilter.js +packages/lib/models/Tag.test.js packages/lib/models/Tag.js packages/lib/models/dateTimeFormats.test.js packages/lib/models/settings/FileHandler.js diff --git a/packages/lib/models/Tag.test.js b/packages/lib/models/Tag.test.ts similarity index 95% rename from packages/lib/models/Tag.test.js rename to packages/lib/models/Tag.test.ts index 984b915c7..ecd0352cb 100644 --- a/packages/lib/models/Tag.test.js +++ b/packages/lib/models/Tag.test.ts @@ -1,7 +1,7 @@ -const { setupDatabaseAndSynchronizer, switchClient, checkThrowAsync } = require('../testing/test-utils.js'); -const Folder = require('../models/Folder').default; -const Note = require('../models/Note').default; -const Tag = require('../models/Tag').default; +import { setupDatabaseAndSynchronizer, switchClient, checkThrowAsync } from '../testing/test-utils'; +import Folder from '../models/Folder'; +import Note from '../models/Note'; +import Tag from '../models/Tag'; describe('models/Tag', () => {