From 28a532e26b6ab328a3a4f9a6132ad715f31088f0 Mon Sep 17 00:00:00 2001 From: Pietro Marchini Date: Thu, 17 Oct 2024 23:37:09 +0200 Subject: [PATCH] test: update fixture --- .../output/assertion-color-tty.mjs | 2 +- .../output/assertion-color-tty.snapshot | 20 +++++++++---------- test/parallel/test-runner-output.mjs | 4 ++-- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/fixtures/test-runner/output/assertion-color-tty.mjs b/test/fixtures/test-runner/output/assertion-color-tty.mjs index 0a268e5632812f..28845882c10002 100644 --- a/test/fixtures/test-runner/output/assertion-color-tty.mjs +++ b/test/fixtures/test-runner/output/assertion-color-tty.mjs @@ -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!') }) diff --git a/test/fixtures/test-runner/output/assertion-color-tty.snapshot b/test/fixtures/test-runner/output/assertion-color-tty.snapshot index 46b0ec084a2015..2909d909351743 100644 --- a/test/fixtures/test-runner/output/assertion-color-tty.snapshot +++ b/test/fixtures/test-runner/output/assertion-color-tty.snapshot @@ -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 } @@ -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 } diff --git a/test/parallel/test-runner-output.mjs b/test/parallel/test-runner-output.mjs index a79a0a8822aa55..f7e1c07a4d5f94 100644 --- a/test/parallel/test-runner-output.mjs +++ b/test/parallel/test-runner-output.mjs @@ -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'],