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

Function assertIncludes

test/es-module/test-esm-imports.mjs:136–139  ·  view source on GitHub ↗
(actual, expected)

Source from the content-addressed store, hash-verified

134}
135
136function assertIncludes(actual, expected) {
137 assert.ok(actual.toString().indexOf(expected) !== -1,
138 `${JSON.stringify(actual)} includes ${JSON.stringify(expected)}`);
139}
140
141function assertNotIncludes(actual, expected) {
142 assert.ok(actual.toString().indexOf(expected) === -1,

Callers 1

Calls 3

okMethod · 0.45
indexOfMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…