MCPcopy
hub / github.com/date-fns/date-fns / assertEqual

Function assertEqual

pkgs/tz/test/node/legacy.cjs:19–22  ·  view source on GitHub ↗
(received, expected)

Source from the content-addressed store, hash-verified

17}
18
19function assertEqual(received, expected) {
20 if (received === expected) return;
21 throw new Error(`Expected "${expected}", but got "${received}"`);
22}
23
24// Edge case, see: https://github.com/date-fns/tz/issues/32#issuecomment-2832031823
25{

Callers 1

legacy.cjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected