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