Skip to content

Commit 382556f

Browse files
committed
migration tests [nfc]: Clarify the dropCache test case
This version is more direct about what we're really doing with this test case, and as a result should be more robust to adding later migrations.
1 parent 85c3a71 commit 382556f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/storage/__tests__/migrations-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ describe('migrations', () => {
128128
// whether any properties outside `storeKeys` are present or not.
129129
[
130130
'check dropCache at 55',
131-
{ ...endBase, migrations: { version: 54 }, mute: [], nonsense: [1, 2, 3] },
131+
// Just before the `dropCache`, plus a `cacheKeys` property, plus junk.
132+
{ ...base52, migrations: { version: 54 }, mute: [], nonsense: [1, 2, 3] },
133+
// Should wind up with the same result as without the extra properties.
132134
endBase,
133135
],
134136

0 commit comments

Comments
 (0)