@@ -104,7 +104,7 @@ describe('migrations', () => {
104
104
// What `base` becomes after all migrations.
105
105
const endBase = {
106
106
...base52 ,
107
- migrations : { version : 56 } ,
107
+ migrations : { version : 57 } ,
108
108
} ;
109
109
110
110
for ( const [ desc , before , after ] of [
@@ -278,6 +278,20 @@ describe('migrations', () => {
278
278
} ,
279
279
{ ...endBase , settings : { ...endBase . settings , markMessagesReadOnScroll : 'never' } } ,
280
280
] ,
281
+ [
282
+ "check 57 with 'night'" ,
283
+ { ...base52 , migrations : { version : 56 } , settings : { ...base52 . settings , theme : 'night' } } ,
284
+ { ...endBase , settings : { ...endBase . settings , theme : 'dark' } } ,
285
+ ] ,
286
+ [
287
+ "check 57 with 'default'" ,
288
+ {
289
+ ...base52 ,
290
+ migrations : { version : 56 } ,
291
+ settings : { ...base52 . settings , theme : 'default' } ,
292
+ } ,
293
+ { ...endBase , settings : { ...endBase . settings , theme : 'default' } } ,
294
+ ] ,
281
295
] ) {
282
296
/* eslint-disable no-loop-func */
283
297
test ( desc , async ( ) => {
0 commit comments