diff options
Diffstat (limited to 'tests/js/accretion.mjs')
-rw-r--r-- | tests/js/accretion.mjs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/js/accretion.mjs b/tests/js/accretion.mjs index 73c93c8..14c86d3 100644 --- a/tests/js/accretion.mjs +++ b/tests/js/accretion.mjs @@ -5,6 +5,7 @@ import sqlite from "../../src/sqlite.cjs"; import * as runner from "../runner.mjs"; import * as db from "../../src/db.mjs"; +import * as u from "../../src/utils.mjs"; import { MIGRATIONS_DIR, runMigrations, @@ -35,7 +36,7 @@ const test_runMigrations = t => { const migrationLogs = fs .readdirSync(MIGRATIONS_DIR) - .sort((a, b) => a.localeCompare(b, "POSIX")) + .sort(u.strSortFn) .map(filename => ({ log: "exec-migration", filename })); assert.deepEqual(contents, migrationLogs); }); |