1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 12:47:14 +01:00
metamask-extension/test/unit/migrations/template-test.js

17 lines
399 B
JavaScript
Raw Normal View History

2018-04-06 01:22:24 +02:00
const assert = require('assert')
const migrationTemplate = require('../../../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)
})
})