Skip to content

Commit 2515e7f

Browse files
committed
test: assertion for debbuging purposes
1 parent eab8c05 commit 2515e7f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parallel/test-config-json-schema.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,12 @@ const schema = generateConfigJsonSchema();
4040
// To regenerate the JSON schema, run:
4141
// out/Release/node --expose-internals tools/doc/generate-json-schema.mjs
4242
// And then run make doc to update the out/doc/node-config-schema.json file.
43+
44+
// Debug only assertion
45+
assert.strictEqual(
46+
JSON.stringify(schema.properties.testRunner),
47+
JSON.stringify(schemaInDoc.properties.testRunner)
48+
)
49+
4350
assert.strictEqual(JSON.stringify(schema), JSON.stringify(schemaInDoc), 'JSON schema is outdated.' +
4451
'Run `out/Release/node --expose-internals tools/doc/generate-json-schema.mjs` to update it.');

0 commit comments

Comments
 (0)