Function
equal
(
actual,
expected,
optDetails= undefined,
ErrorConstructor= undefined)
Source from the content-addressed store, hash-verified
| 1842 | |
| 1843 | /** @type {AssertEqual} */ |
| 1844 | const equal= ( |
| 1845 | actual, |
| 1846 | expected, |
| 1847 | optDetails= undefined, |
| 1848 | ErrorConstructor= undefined)=> |
| 1849 | { |
| 1850 | is(actual, expected)|| |
| 1851 | fail( |
| 1852 | optDetails|| details `Expected ${actual} is same as ${expected}`, |
| 1853 | ErrorConstructor|| RangeError); |
| 1854 | |
| 1855 | }; |
| 1856 | freeze(equal); |
| 1857 | |
| 1858 | /** @type {AssertTypeof} */ |
Callers
nothing calls this directly
Tested by
no test coverage detected