mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
e78e82205a
* Jestify migrations/ * Lint exclude migrations from mocha config, and add inclusion to jest config * Add migration tests to jest config * Exclude/ignore migration tests * Set process.env.IN_TEST to true when running tests locally
14 lines
311 B
JavaScript
14 lines
311 B
JavaScript
import migrationTemplate from './template';
|
|
|
|
const storage = {
|
|
meta: {},
|
|
data: {},
|
|
};
|
|
|
|
describe('storage is migrated successfully', () => {
|
|
it('should work', async () => {
|
|
const migratedData = await migrationTemplate.migrate(storage);
|
|
expect(migratedData.meta.version).toStrictEqual(0);
|
|
});
|
|
});
|