mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
20 lines
424 B
JavaScript
20 lines
424 B
JavaScript
import assert from 'assert'
|
|
import migrationTemplate from '../../../app/scripts/migrations/template'
|
|
|
|
const storage = {
|
|
meta: {},
|
|
data: {},
|
|
}
|
|
|
|
describe('storage is migrated successfully', function () {
|
|
it('should work', function (done) {
|
|
migrationTemplate
|
|
.migrate(storage)
|
|
.then((migratedData) => {
|
|
assert.equal(migratedData.meta.version, 0)
|
|
done()
|
|
})
|
|
.catch(done)
|
|
})
|
|
})
|