( schema: UrlParams & HttpApiEndpoint.HttpApiEndpoint.ValidateUrlParams<UrlParams>, params: Record<string, string | Array<string>>, expected: Record<string, string | Array<string>> )
| 5 | import { identity, Schema } from "effect" |
| 6 | |
| 7 | const assertNormalizedUrlParams = <UrlParams extends Schema.Schema.Any>( |
| 8 | schema: UrlParams & HttpApiEndpoint.HttpApiEndpoint.ValidateUrlParams<UrlParams>, |
| 9 | params: Record<string, string | Array<string>>, |
| 10 | expected: Record<string, string | Array<string>> |
| 11 | ) => { |
| 12 | deepStrictEqual(HttpApiBuilder.normalizeUrlParams(params, schema.ast), expected) |
| 13 | } |
| 14 | |
| 15 | describe("HttpApiBuilder", () => { |
| 16 | describe("normalizeUrlParams", () => { |
no test coverage detected
searching dependent graphs…