You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
913 B
40 lines
913 B
4 years ago
|
import assert from 'assert';
|
||
4 years ago
|
import migration33 from './033';
|
||
6 years ago
|
|
||
5 years ago
|
describe('Migration to delete notice controller', function () {
|
||
6 years ago
|
const oldStorage = {
|
||
4 years ago
|
meta: {},
|
||
|
data: {
|
||
|
NoticeController: {
|
||
|
noticesList: [
|
||
6 years ago
|
{
|
||
|
id: 0,
|
||
|
read: false,
|
||
|
date: 'Thu Feb 09 2017',
|
||
|
title: 'Terms of Use',
|
||
|
body: 'notice body',
|
||
|
},
|
||
|
{
|
||
|
id: 2,
|
||
|
read: false,
|
||
|
title: 'Privacy Notice',
|
||
|
body: 'notice body',
|
||
|
},
|
||
|
{
|
||
|
id: 4,
|
||
|
read: false,
|
||
|
title: 'Phishing Warning',
|
||
|
body: 'notice body',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
4 years ago
|
};
|
||
6 years ago
|
|
||
5 years ago
|
it('removes notice controller from state', function () {
|
||
4 years ago
|
migration33.migrate(oldStorage).then((newStorage) => {
|
||
4 years ago
|
assert.equal(newStorage.data.NoticeController, undefined);
|
||
|
});
|
||
|
});
|
||
|
});
|