Skip to content

Commit 20c65b8

Browse files
committed
Fix tests for Node.js v20.11.0 (#2618)
Signed-off-by: Matteo Collina <hello@matteocollina.com>
1 parent 8ec52cd commit 20c65b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mock-interceptor-unused-assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const util = require('../lib/core/util')
77

88
// Since Node.js v21 `console.table` rows are aligned to the left
99
// https://github.com/nodejs/node/pull/50135
10-
const tableRowsAlignedToLeft = util.nodeMajor >= 21
10+
const tableRowsAlignedToLeft = util.nodeMajor >= 21 || (util.nodeMajor === 20 && util.nodeMinor >= 11)
1111

1212
// Avoid colors in the output for inline snapshots.
1313
const pendingInterceptorsFormatter = new PendingInterceptorsFormatter({ disableColors: true })

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy