Skip to content

Commit

Permalink
fix: refactor test logic to be clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptodev-2s committed Nov 29, 2024
1 parent 27f87c7 commit 593e03d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/scripts/migrations/134.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,17 @@ describe(`migration #${version}`, () => {
},
},
};
const expectedState = {
AppStateController: {
timeoutMinutes: 0,
},
};

const transformedState = await migrate({
meta: { version: oldVersion },
data: cloneDeep(oldState),
});

delete oldState.AppStateController.usedNetworks;
expect(transformedState.data).toStrictEqual(oldState);
expect(transformedState.data).toStrictEqual(expectedState);
});
});

0 comments on commit 593e03d

Please sign in to comment.