mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 06:07:06 +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
18 lines
398 B
JavaScript
18 lines
398 B
JavaScript
import assert from 'assert'
|
|
import migrationTemplate from '../../../app/scripts/migrations/template'
|
|
|
|
const storage = {
|
|
meta: {},
|
|
data: {},
|
|
}
|
|
|
|
describe('storage is migrated successfully', () => {
|
|
it('should work', (done) => {
|
|
migrationTemplate.migrate(storage)
|
|
.then((migratedData) => {
|
|
assert.equal(migratedData.meta.version, 0)
|
|
done()
|
|
}).catch(done)
|
|
})
|
|
})
|