CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 18:47:40 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/nodejs/node.git
etag: W/"5dba4744dbfb4baf715edb161019ef46"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=1HhYzblLAt7hP6Lgpa5XdsKYJRYCVRrl%2BmROrVP2G%2BQ1QyEGJOKkE5d9wUJDsd92s3u4FUXraDTmtypvr%2B41cmYhTifSFDBUzcjBQ%2F2ezUq%2BJEJzkDo0iOOR93obJLYe2qd2B1jakSS4DxxScf9zhr5p3FQQR%2BlNT7t6K7XvWsQa4eIhDggMW%2Bacgwn5Yd7sH6jWB50%2FeFeknJz8%2Bt8Ay%2F6rNxc%2Be%2F3%2BWEibFdFqs0pfzFTpnoxsW%2FS6DG5K89%2Figlahc%2B7RydiXiuxGF0ry3g%3D%3D--xQl%2FZhbtcX37CcVV--MzzlNoDElvBLXi0NxWu%2Bcw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2091841071.1760294859; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 18:47:39 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 12 Oct 2026 18:47:39 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A8DE:2A5D20:AD69C2:E51B03:68EBF7CB
test: expand linting rules around `assert` w literal messages · nodejs/node@7e0a0fc · GitHub
Copy file name to clipboardExpand all lines: test/addons/report-fatalerror/test.js
Copy file name to clipboardExpand all lines: test/eslint.config_partial.mjs
Copy file name to clipboardExpand all lines: test/js-native-api/test_object/test.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-write-fast.js
Copy file name to clipboardExpand all lines: test/parallel/test-net-listen-exclusive-random-ports.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-toArray.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-compact.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-directory.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-filename.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-not-set.js
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Commit 7e0a0fc
test: expand linting rules around
Expands the existing restrictions around not using literal messages
to the `not` variants of `strictEqual` and `deepStrictEqual`, and
forbids `assert()` where the second argument is a non-string literal,
which almost always is a mis-typed `assert.strictEquals()`.
PR-URL: #59147
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>assert
w literal messages1 parent 96c9dd7 commit 7e0a0fcCopy full SHA for 7e0a0fc
File tree
Expand file treeCollapse file tree
11 files changed
+27
-15
lines changedFilter options
- test
- addons/report-fatalerror
- js-native-api/test_object
- parallel
- report
Expand file treeCollapse file tree
11 files changed
+27
-15
lines changedCollapse file: test/addons/report-fatalerror/test.js
test/addons/report-fatalerror/test.js
Copy file name to clipboardExpand all lines: test/addons/report-fatalerror/test.js+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
|
Collapse file: test/eslint.config_partial.mjs
test/eslint.config_partial.mjs
Copy file name to clipboardExpand all lines: test/eslint.config_partial.mjs+12Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 |
| |
40 | 44 |
| |
41 | 45 |
| |
| |||
48 | 52 |
| |
49 | 53 |
| |
50 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 |
| |
52 | 60 |
| |
53 | 61 |
| |
54 | 62 |
| |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
55 | 67 |
| |
56 | 68 |
| |
57 | 69 |
| |
|
Collapse file: test/js-native-api/test_object/test.js
test/js-native-api/test_object/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/test_object/test.js+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| |||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
158 |
| - | |
159 |
| - | |
| 158 | + | |
| 159 | + | |
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
|
Collapse file: test/parallel/test-buffer-write-fast.js
test/parallel/test-buffer-write-fast.js
Copy file name to clipboardExpand all lines: test/parallel/test-buffer-write-fast.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
|
Collapse file: test/parallel/test-net-listen-exclusive-random-ports.js
test/parallel/test-net-listen-exclusive-random-ports.js
Copy file name to clipboardExpand all lines: test/parallel/test-net-listen-exclusive-random-ports.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
|
Collapse file: test/parallel/test-stream-toArray.js
test/parallel/test-stream-toArray.js
Copy file name to clipboardExpand all lines: test/parallel/test-stream-toArray.js+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
73 |
| - | |
| 72 | + | |
| 73 | + | |
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
|
Collapse file: test/report/test-report-fatalerror-oomerror-compact.js
test/report/test-report-fatalerror-oomerror-compact.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-compact.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
|
Collapse file: test/report/test-report-fatalerror-oomerror-directory.js
test/report/test-report-fatalerror-oomerror-directory.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-directory.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
|
Collapse file: test/report/test-report-fatalerror-oomerror-filename.js
test/report/test-report-fatalerror-oomerror-filename.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-filename.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
|
Collapse file: test/report/test-report-fatalerror-oomerror-not-set.js
test/report/test-report-fatalerror-oomerror-not-set.js
Copy file name to clipboardExpand all lines: test/report/test-report-fatalerror-oomerror-not-set.js+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
|
You can’t perform that action at this time.
0 commit comments