MCPcopy
hub / github.com/rvagg/through2 / eq

Function eq

test/test.js:11–15  ·  view source on GitHub ↗
(actual, expected, msg)

Source from the content-addressed store, hash-verified

9const encoder = new TextEncoder()
10
11const eq = (actual, expected, msg) => {
12 if (actual !== expected) {
13 throw new Error(`${msg || 'eq'}: expected ${JSON.stringify(expected)}, got ${JSON.stringify(actual)}`)
14 }
15}
16
17const deepEq = (actual, expected, msg) => {
18 if (JSON.stringify(actual) !== JSON.stringify(expected)) {

Callers 9

classicByteTransformFunction · 0.70
classicNoopTransformFunction · 0.70
classicFlushFunction · 0.70
classicCallbackShorthandFunction · 0.70
asyncReturnedValuePushedFunction · 0.70
asyncgenThrownPropagatesFunction · 0.70
legacyDefaultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected