( value: unknown, expected: string, label: string = unnamed )
| 1336 | const unnamed = "A value a validator reads" |
| 1337 | |
| 1338 | export const checkDigest = ( |
| 1339 | value: unknown, |
| 1340 | expected: string, |
| 1341 | label: string = unnamed |
| 1342 | ): void => { |
| 1343 | if (!hasDomain(value, "object") || digestOf(value) !== expected) |
| 1344 | throwError(writeDigestMismatchMessage(label)) |
| 1345 | } |
| 1346 | |
| 1347 | export const checkFacts = ( |
| 1348 | actual: HoleFact, |
nothing calls this directly
no test coverage detected