From 89312fd884dd2e2d51e2791e810a489e85abf290 Mon Sep 17 00:00:00 2001 From: nedsalk Date: Thu, 27 Jun 2024 12:33:37 +0200 Subject: [PATCH] simplify test --- packages/account/src/test-utils/launchNode.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/account/src/test-utils/launchNode.test.ts b/packages/account/src/test-utils/launchNode.test.ts index 1ac785b5e7f..a50fadf4de1 100644 --- a/packages/account/src/test-utils/launchNode.test.ts +++ b/packages/account/src/test-utils/launchNode.test.ts @@ -107,12 +107,7 @@ describe('launchNode', () => { expect(error).toBeTruthy(); - const logs = logSpy.mock.calls.map((mock) => mock[0]); - const errorLogged = logs.some((log) => - (log as string | undefined)?.includes((error as Error).message) - ); - - expect(errorLogged).toBe(true); + expect(logSpy).toHaveBeenCalledWith(error?.message); }); test('logs fuel-core outputs via console.log', async () => {