@ -1,4 +1,4 @@
import assert from 'assert' ;
import { strict as assert } from 'assert' ;
import wallet1 from '../../../test/lib/migrations/001.json' ;
import wallet1 from '../../../test/lib/migrations/001.json' ;
import vault4 from '../../../test/lib/migrations/004.json' ;
import vault4 from '../../../test/lib/migrations/004.json' ;
import migration2 from './002' ;
import migration2 from './002' ;
@ -52,7 +52,7 @@ describe('wallet1 is migrated successfully', function () {
const fourthData = fourthResult . data ;
const fourthData = fourthResult . data ;
assert . equal (
assert . equal (
fourthData . config . provider . rpcTarget ,
fourthData . config . provider . rpcTarget ,
null ,
undefined ,
'old rpcTarget should not exist.' ,
'old rpcTarget should not exist.' ,
) ;
) ;
assert . equal (
assert . equal (
@ -65,15 +65,15 @@ describe('wallet1 is migrated successfully', function () {
} )
} )
. then ( ( fifthResult ) => {
. then ( ( fifthResult ) => {
const fifthData = fifthResult . data ;
const fifthData = fifthResult . data ;
assert . equal ( fifthData . vault , null , 'old vault should not exist' ) ;
assert . equal ( fifthData . vault , undefined , 'old vault should not exist' ) ;
assert . equal (
assert . equal (
fifthData . walletNicknames ,
fifthData . walletNicknames ,
null ,
undefined ,
'old walletNicknames should not exist' ,
'old walletNicknames should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
fifthData . config . selectedAccount ,
fifthData . config . selectedAccount ,
null ,
undefined ,
'old config.selectedAccount should not exist' ,
'old config.selectedAccount should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
@ -102,7 +102,7 @@ describe('wallet1 is migrated successfully', function () {
. then ( ( sixthResult ) => {
. then ( ( sixthResult ) => {
assert . equal (
assert . equal (
sixthResult . data . KeyringController . selectedAccount ,
sixthResult . data . KeyringController . selectedAccount ,
null ,
undefined ,
'old selectedAccount should not exist' ,
'old selectedAccount should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
@ -117,12 +117,12 @@ describe('wallet1 is migrated successfully', function () {
. then ( ( seventhResult ) => {
. then ( ( seventhResult ) => {
assert . equal (
assert . equal (
seventhResult . data . transactions ,
seventhResult . data . transactions ,
null ,
undefined ,
'old transactions should not exist' ,
'old transactions should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
seventhResult . data . gasMultiplier ,
seventhResult . data . gasMultiplier ,
null ,
undefined ,
'old gasMultiplier should not exist' ,
'old gasMultiplier should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
@ -142,7 +142,7 @@ describe('wallet1 is migrated successfully', function () {
. then ( ( eighthResult ) => {
. then ( ( eighthResult ) => {
assert . equal (
assert . equal (
eighthResult . data . noticesList ,
eighthResult . data . noticesList ,
null ,
undefined ,
'old noticesList should not exist' ,
'old noticesList should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
@ -157,22 +157,22 @@ describe('wallet1 is migrated successfully', function () {
. then ( ( ninthResult ) => {
. then ( ( ninthResult ) => {
assert . equal (
assert . equal (
ninthResult . data . currentFiat ,
ninthResult . data . currentFiat ,
null ,
undefined ,
'old currentFiat should not exist' ,
'old currentFiat should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
ninthResult . data . fiatCurrency ,
ninthResult . data . fiatCurrency ,
null ,
undefined ,
'old fiatCurrency should not exist' ,
'old fiatCurrency should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
ninthResult . data . conversionRate ,
ninthResult . data . conversionRate ,
null ,
undefined ,
'old conversionRate should not exist' ,
'old conversionRate should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
ninthResult . data . conversionDate ,
ninthResult . data . conversionDate ,
null ,
undefined ,
'old conversionDate should not exist' ,
'old conversionDate should not exist' ,
) ;
) ;
@ -198,7 +198,7 @@ describe('wallet1 is migrated successfully', function () {
. then ( ( tenthResult ) => {
. then ( ( tenthResult ) => {
assert . equal (
assert . equal (
tenthResult . data . shapeShiftTxList ,
tenthResult . data . shapeShiftTxList ,
null ,
undefined ,
'old shapeShiftTxList should not exist' ,
'old shapeShiftTxList should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
@ -211,12 +211,12 @@ describe('wallet1 is migrated successfully', function () {
. then ( ( eleventhResult ) => {
. then ( ( eleventhResult ) => {
assert . equal (
assert . equal (
eleventhResult . data . isDisclaimerConfirmed ,
eleventhResult . data . isDisclaimerConfirmed ,
null ,
undefined ,
'isDisclaimerConfirmed should not exist' ,
'isDisclaimerConfirmed should not exist' ,
) ;
) ;
assert . equal (
assert . equal (
eleventhResult . data . TOSHash ,
eleventhResult . data . TOSHash ,
null ,
undefined ,
'TOSHash should not exist' ,
'TOSHash should not exist' ,
) ;
) ;