mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
NetworkController: Improve test for destroy (#19314)
This test for the `destroy` method in NetworkController uses `toBe` on the core side because the use of `toBeTruthy` produces a lint warning there. It doesn't here, but it's good to be consistent anyway so that comparing the differences in NetworkController tests between this extension and core is easier.
This commit is contained in:
parent
cc2e18b16a
commit
3e0d717b97
@ -259,7 +259,7 @@ describe('NetworkController', () => {
|
||||
blockTracker.addListener('latest', () => {
|
||||
// do nothing
|
||||
});
|
||||
expect(blockTracker.isRunning()).toBeTruthy();
|
||||
expect(blockTracker.isRunning()).toBe(true);
|
||||
|
||||
await controller.destroy();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user