mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-29 15:50:28 +01:00
92971d3c87
* Update eslint-plugin-import version * Convert JS files to use ESM * Update ESLint rules to check imports * Fix test:unit:global command env * Cleanup mock-dev script
41 lines
941 B
JavaScript
41 lines
941 B
JavaScript
import assert from 'assert'
|
|
import migration33 from '../../../app/scripts/migrations/033'
|
|
|
|
describe('Migration to delete notice controller', () => {
|
|
const oldStorage = {
|
|
'meta': {},
|
|
'data': {
|
|
'NoticeController': {
|
|
'noticesList': [
|
|
{
|
|
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',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
}
|
|
|
|
it('removes notice controller from state', () => {
|
|
migration33.migrate(oldStorage)
|
|
.then(newStorage => {
|
|
assert.equal(newStorage.data.NoticeController, undefined)
|
|
})
|
|
})
|
|
})
|