episodes touch

This commit is contained in:
Storme-bit
2026-08-23 19:24:10 -07:00
parent 00101ba14a
commit fd8867ee96
5 changed files with 37 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ test('a fresh DB (user_version 0) is stamped to LATEST_VERSION', () => {
test('an already-current DB is a no-op (no version writes)', () => {
const db = fakeDb(LATEST_VERSION);
const stubs = Array.from({ length: LATEST_VERSION }, () => () => {});
const result = migrate(stubs);
const result = migrate(db, stubs); // fixed: db is now the first arg
assert.strictEqual(result, LATEST_VERSION);
assert.deepStrictEqual(db.setCalls, [], 'should not touch user_version when current');
});