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

Function deepStrictEqual

test/parallel/test-sqlite-session.js:19–28  ·  view source on GitHub ↗

* Convenience wrapper around assert.deepStrictEqual that sets a null * prototype to the expected object. * @returns {boolean}

(t)

Source from the content-addressed store, hash-verified

17 * @returns {boolean}
18 */
19function deepStrictEqual(t) {
20 return (actual, expected, message) => {
21 if (Array.isArray(expected)) {
22 expected = expected.map((obj) => ({ ...obj, __proto__: null }));
23 } else if (typeof expected === 'object') {
24 expected = { ...expected, __proto__: null };
25 }
26 t.assert.deepStrictEqual(actual, expected, message);
27 };
28}
29
30test('creating and applying a changeset', (t) => {
31 const createDataTableSql = `

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…