You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
402 B
20 lines
402 B
4 years ago
|
import assert from 'assert';
|
||
4 years ago
|
import migrationTemplate from './template';
|
||
5 years ago
|
|
||
7 years ago
|
const storage = {
|
||
|
meta: {},
|
||
|
data: {},
|
||
4 years ago
|
};
|
||
7 years ago
|
|
||
5 years ago
|
describe('storage is migrated successfully', function () {
|
||
|
it('should work', function (done) {
|
||
4 years ago
|
migrationTemplate
|
||
|
.migrate(storage)
|
||
5 years ago
|
.then((migratedData) => {
|
||
4 years ago
|
assert.equal(migratedData.meta.version, 0);
|
||
|
done();
|
||
4 years ago
|
})
|
||
4 years ago
|
.catch(done);
|
||
|
});
|
||
|
});
|