Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Jun 27, 2024
1 parent 8828c5f commit 89312fd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/account/src/test-utils/launchNode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 89312fd

Please sign in to comment.