episodes touch
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user