1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-25 21:00:23 +02:00
metamask-extension/test/unit/migrations/template-test.js

20 lines
424 B
JavaScript
Raw Normal View History

import assert from 'assert'
import migrationTemplate from '../../../app/scripts/migrations/template'
2018-04-06 01:22:24 +02:00
const storage = {
meta: {},
data: {},
}
describe('storage is migrated successfully', function () {
it('should work', function (done) {
2020-11-03 00:41:28 +01:00
migrationTemplate
.migrate(storage)
.then((migratedData) => {
assert.equal(migratedData.meta.version, 0)
done()
2020-11-03 00:41:28 +01:00
})
.catch(done)
2018-04-06 01:22:24 +02:00
})
})