A Metamask fork with Infura removed and default networks editable
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.
 
 
 
 
 
ciphermask/app/scripts/migrations/033.test.js

37 lines
870 B

import migration33 from './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', async () => {
const newStorage = await migration33.migrate(oldStorage);
expect(newStorage.data.NoticeController).toBeUndefined();
});
});