1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/app/scripts/migrations/template.test.js

14 lines
315 B
JavaScript
Raw Normal View History

import { migrate, version } from './template';
2018-04-06 01:22:24 +02:00
const storage = {
meta: { version: -1 },
2018-04-06 01:22:24 +02:00
data: {},
};
2018-04-06 01:22:24 +02:00
describe('storage is migrated successfully', () => {
it('should work', async () => {
const migratedData = await migrate(storage);
expect(migratedData.meta.version).toStrictEqual(version);
});
});