Skip to content

Commit

Permalink
test: update fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Oct 17, 2024
1 parent ace5df3 commit 28a532e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/test-runner/output/assertion-color-tty.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import assert from 'node:assert/strict'
import { test } from 'node:test'

test('failing assertion', () => {
assert.equal('apple', 'pear')
assert.strictEqual('!Hello World', 'Hello World!')
})
20 changes: 10 additions & 10 deletions test/fixtures/test-runner/output/assertion-color-tty.snapshot
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[31m✖ failing assertion [90m(*ms)[39m[39m
[AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
[32m+ actual[39m [31m- expected[39m
[32mactual[39m [31mexpected[39m

[32m+[39m 'apple'
[31m-[39m 'pear'] {
[39m'[39m[32m![39m[39mH[39m[39me[39m[39ml[39m[39ml[39m[39mo[39m[39m [39m[39mW[39m[39mo[39m[39mr[39m[39ml[39m[39md[39m[31m![39m[39m'[39m
] {
generatedMessage: [33mtrue[39m,
code: [32m'ERR_ASSERTION'[39m,
actual: [32m'apple'[39m,
expected: [32m'pear'[39m,
actual: [32m'!Hello World'[39m,
expected: [32m'Hello World!'[39m,
operator: [32m'strictEqual'[39m
}

Expand All @@ -25,13 +25,13 @@
*
[31m✖ failing assertion [90m(*ms)[39m[39m
[AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
[32m+ actual[39m [31m- expected[39m
[32mactual[39m [31mexpected[39m

[32m+[39m 'apple'
[31m-[39m 'pear'] {
[39m'[39m[32m![39m[39mH[39m[39me[39m[39ml[39m[39ml[39m[39mo[39m[39m [39m[39mW[39m[39mo[39m[39mr[39m[39ml[39m[39md[39m[31m![39m[39m'[39m
] {
generatedMessage: [33mtrue[39m,
code: [32m'ERR_ASSERTION'[39m,
actual: [32m'apple'[39m,
expected: [32m'pear'[39m,
actual: [32m'!Hello World'[39m,
expected: [32m'Hello World!'[39m,
operator: [32m'strictEqual'[39m
}
4 changes: 2 additions & 2 deletions test/parallel/test-runner-output.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,12 @@ const tests = [
name: 'test-runner/output/non-tty-forced-color-output.js',
transform: specTransform,
},
{
!skipForceColors ? {
name: 'test-runner/output/assertion-color-tty.mjs',
flags: ['--test', '--stack-trace-limit=0'],
transform: specTransform,
tty: true,
},
} : false,
{
name: 'test-runner/output/async-test-scheduling.mjs',
flags: ['--test-reporter=tap'],
Expand Down

0 comments on commit 28a532e

Please sign in to comment.