diff --git a/test/mo-compiler-test.js b/test/mo-compiler-test.js index df1fbf0..3b0a8b6 100644 --- a/test/mo-compiler-test.js +++ b/test/mo-compiler-test.js @@ -1,9 +1,9 @@ +import { promisify } from 'node:util'; +import path from 'node:path'; +import { mo } from '../src/index.js'; +import { readFile as fsReadFile } from 'node:fs'; +import { fileURLToPath } from 'node:url'; import * as chai from 'chai'; -import { promisify } from 'util'; -import path from 'path'; -import { mo } from '../lib/index.js'; -import { readFile as fsReadFile } from 'fs'; -import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/test/mo-parser-test.js b/test/mo-parser-test.js index 1fd6c86..4391471 100644 --- a/test/mo-parser-test.js +++ b/test/mo-parser-test.js @@ -1,9 +1,9 @@ +import { promisify } from 'node:util'; +import path from 'node:path'; +import { readFile as fsReadFile } from 'node:fs'; +import { fileURLToPath } from 'node:url'; import * as chai from 'chai'; -import { promisify } from 'util'; -import path from 'path'; -import { mo } from '../lib/index.js'; -import { readFile as fsReadFile } from 'fs'; -import { fileURLToPath } from 'url'; +import { mo } from '../src/index.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/test/module.mjs b/test/module.mjs index 19ead2b..b1b48b0 100644 --- a/test/module.mjs +++ b/test/module.mjs @@ -1,5 +1,5 @@ import { expect } from 'chai'; -import { po, mo } from '../lib/index.js'; +import { po, mo } from '../src/index.js'; describe('esm module', () => { it('should allow named imports', () => { diff --git a/test/po-compiler-test.js b/test/po-compiler-test.js index ca4eb03..0e969ce 100644 --- a/test/po-compiler-test.js +++ b/test/po-compiler-test.js @@ -1,10 +1,10 @@ -import { EOL } from 'os'; -import { promisify } from 'util'; -import path from 'path'; -import { readFile as fsReadFile } from 'fs'; +import { readFile as fsReadFile } from 'node:fs'; +import { promisify } from 'node:util'; +import path from 'node:path'; +import { EOL } from 'node:os'; +import { fileURLToPath } from 'node:url'; +import { po } from '../src/index.js'; import * as chai from 'chai'; -import { po } from '../lib/index.js'; -import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/test/po-obsolete-test.js b/test/po-obsolete-test.js index 437d08f..d8a4a18 100644 --- a/test/po-obsolete-test.js +++ b/test/po-obsolete-test.js @@ -1,10 +1,10 @@ -import { EOL } from 'os'; +import { EOL } from 'node:os'; +import path from 'node:path'; +import fs from 'node:fs'; +import { promisify } from 'node:util'; import * as chai from 'chai'; -import { promisify } from 'util'; -import path from 'path'; -import fs from 'fs'; -import * as gettextParser from '../lib/index.js'; -import { fileURLToPath } from 'url'; +import * as gettextParser from '../src/index.js'; +import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/test/po-parser-test.js b/test/po-parser-test.js index 55f4f4b..644e222 100644 --- a/test/po-parser-test.js +++ b/test/po-parser-test.js @@ -1,9 +1,9 @@ import * as chai from 'chai'; -import { promisify } from 'util'; -import path from 'path'; -import fs from 'fs'; -import * as gettextParser from '../lib/index.js'; -import { fileURLToPath } from 'url'; +import { promisify } from 'node:util'; +import path from 'node:path'; +import fs from 'node:fs'; +import * as gettextParser from '../src/index.js'; +import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/test/shared.js b/test/shared.js index c40dfd6..0263c02 100644 --- a/test/shared.js +++ b/test/shared.js @@ -1,11 +1,9 @@ -'use strict'; - +import { promisify } from 'node:util'; +import path from 'node:path'; +import { readFile as fsReadFile } from 'node:fs'; +import { fileURLToPath } from 'node:url'; import * as chai from 'chai'; -import { promisify } from 'util'; -import path from 'path'; -import { formatCharset, parseHeader, generateHeader, foldLine, parseNPluralFromHeadersSafely } from '../lib/shared.js'; -import { readFile as fsReadFile } from 'fs'; -import { fileURLToPath } from 'url'; +import { formatCharset, parseHeader, generateHeader, foldLine, parseNPluralFromHeadersSafely } from '../src/shared.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename);