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

Function assertEqual

pkgs/tz/test/engines/src/test.ts:18–21  ·  view source on GitHub ↗
(received: Type, expected: Type)

Source from the content-addressed store, hash-verified

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

Callers 1

test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected