MCPcopy Index your code
hub / github.com/nodejs/node / checkForUnknownFields

Function checkForUnknownFields

test/common/report.js:340–344  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

338}
339
340function checkForUnknownFields(actual, expected) {
341 Object.keys(actual).forEach((field) => {
342 assert(expected.includes(field), `'${field}' not expected in ${expected}`);
343 });
344}
345
346module.exports = { findReports, validate, validateContent };

Callers 1

_validateContentFunction · 0.85

Calls 4

includesMethod · 0.80
forEachMethod · 0.65
keysMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…