summaryrefslogtreecommitdiff
path: root/tests/js/accretion.mjs
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-02-28 11:30:33 -0300
committerEuAndreh <eu@euandre.org>2024-02-28 11:30:33 -0300
commitba13007dce63d211eb6a168f502f58af01a6ca1f (patch)
tree9bfbc3da317ed3cf8ec7e75e9e07b8e68acdafef /tests/js/accretion.mjs
parenttests/runner.mjs: Use process.stderr.write() to avoid printing newlines when ... (diff)
downloadpapod-ba13007dce63d211eb6a168f502f58af01a6ca1f.tar.gz
papod-ba13007dce63d211eb6a168f502f58af01a6ca1f.tar.xz
src/utils.mjs: Define strSortFn() and use it on all files
Diffstat (limited to 'tests/js/accretion.mjs')
-rw-r--r--tests/js/accretion.mjs3
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);
});