Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1727a4af07 |
@@ -25,8 +25,15 @@ 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