(/** @type {string} */ value)
| 35 | |
| 36 | describe("nonNumericOnlyHash.digestNonNumericOnly", () => { |
| 37 | const fakeHash = (/** @type {string} */ value) => |
| 38 | /** @type {EXPECTED_ANY} */ ({ |
| 39 | digest: (/** @type {string} */ encoding) => `${value}:${encoding}` |
| 40 | }); |
| 41 | |
| 42 | it("digests then truncates with a non-numeric first char", () => { |
| 43 | expect(digestNonNumericOnly(fakeHash("abcdef"), "hex", 3)).toBe("abc"); |
no outgoing calls
no test coverage detected