mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
4f3fc95d50
* Use @metamask/eslint-config@1.1.0 * Use eslint-plugin-mocha@6.2.2 * Mark root ESLint config as root * Update Mocha ESLint rules with shared ESLint config
18 lines
410 B
JavaScript
18 lines
410 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)
|
|
})
|
|
})
|