1
0
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:
Elliot Winkler 2023-05-31 09:30:17 -06:00 committed by GitHub
parent cc2e18b16a
commit 3e0d717b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ describe('NetworkController', () => {
blockTracker.addListener('latest', () => {
// do nothing
});
expect(blockTracker.isRunning()).toBeTruthy();
expect(blockTracker.isRunning()).toBe(true);
await controller.destroy();