Skip to content

Commit

Permalink
test(buildlogmessage): check not null
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Sep 18, 2024
1 parent d02efc9 commit 32e8328
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/core/buildLogMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ test('buildLogMessage', () => {
options,
true
)
expect(colorMessage).toContain('\x1b[') // ANSI color codes

expect(colorMessage).not.toBe(message)

Check failure on line 33 in tests/core/buildLogMessage.test.ts

View workflow job for this annotation

GitHub Actions / 🧪 Test (ubuntu-latest, 22)

error: expect(received).not.toBe(expected)

Expected: not "INFO Test message IP: 127.0.0.1" at /home/runner/work/logixlysia/logixlysia/tests/core/buildLogMessage.test.ts:33:28
expect(colorMessage.split(' ')[0]).not.toBe(message.split(' ')[0])
})

0 comments on commit 32e8328

Please sign in to comment.