MCPcopy
hub / github.com/Effect-TS/effect / expectPaths

Function expectPaths

packages/platform/test/OpenApi.test.ts:159–165  ·  view source on GitHub ↗
(
  api: HttpApi.HttpApi<Id, Groups, E, R>,
  paths: ReadonlyArray<string>
)

Source from the content-addressed store, hash-verified

157}
158
159const expectPaths = <Id extends string, Groups extends HttpApiGroup.HttpApiGroup.Any, E, R>(
160 api: HttpApi.HttpApi<Id, Groups, E, R>,
161 paths: ReadonlyArray<string>
162) => {
163 const spec = OpenApi.fromApi(api)
164 deepStrictEqual(Object.keys(spec.paths), paths)
165}
166
167describe("OpenApi", () => {
168 describe("fromApi", () => {

Callers 1

OpenApi.test.tsFile · 0.85

Calls 2

deepStrictEqualFunction · 0.90
keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…