1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-28 23:06:37 +01:00
metamask-extension/app/scripts/migrations/template.test.js
Mark Stacey cb113dd2a6
Convert the migration template to TypeScript (#17836)
The migration template has been converted to TypeScript. We can start
writing migrations in TypeScript today; they have no dependencies on
JavaScript modules.
2023-02-27 15:16:22 -03:30

14 lines
315 B
JavaScript

import { migrate, version } from './template';
const storage = {
meta: { version: -1 },
data: {},
};
describe('storage is migrated successfully', () => {
it('should work', async () => {
const migratedData = await migrate(storage);
expect(migratedData.meta.version).toStrictEqual(version);
});
});