Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a02bbf4c4f |
@@ -25,15 +25,8 @@ const MAINNET_TOKEN = {
|
|||||||
name: "Dai Stablecoin",
|
name: "Dai Stablecoin",
|
||||||
};
|
};
|
||||||
|
|
||||||
// Fake timers hold the timer of the flash message a switch ends with, which
|
|
||||||
// would otherwise fire after cleanupPopup() has removed the page and throw.
|
|
||||||
beforeEach(() => {
|
|
||||||
jest.useFakeTimers();
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
cleanupPopup();
|
cleanupPopup();
|
||||||
jest.useRealTimers();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// The popup reopened onto SettingsAddToken, on `networkId`.
|
// The popup reopened onto SettingsAddToken, on `networkId`.
|
||||||
|
|||||||
Reference in New Issue
Block a user