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.
18 lines
565 B
18 lines
565 B
4 years ago
|
import assert from 'assert';
|
||
4 years ago
|
import wallet2 from '../../../test/lib/migrations/002.json';
|
||
|
import migration21 from './021';
|
||
7 years ago
|
|
||
5 years ago
|
describe('wallet2 is migrated successfully with out the BlacklistController', function () {
|
||
|
it('should delete BlacklistController key', function (done) {
|
||
4 years ago
|
migration21
|
||
|
.migrate(wallet2)
|
||
5 years ago
|
.then((migratedData) => {
|
||
4 years ago
|
assert.equal(migratedData.meta.version, 21);
|
||
|
assert(!migratedData.data.BlacklistController);
|
||
|
assert(!migratedData.data.RecentBlocks);
|
||
|
done();
|
||
4 years ago
|
})
|
||
4 years ago
|
.catch(done);
|
||
|
});
|
||
|
});
|