diff --git a/test/descriptions.test.ts b/test/descriptions.test.ts index f39cd90..ab9b350 100644 --- a/test/descriptions.test.ts +++ b/test/descriptions.test.ts @@ -22,7 +22,7 @@ describe("validator descriptions", () => { }); test("fields that wrap one schema in allOf keep their own description", () => { - const description = spec.paths["/api/0/organizations/{organization_id_or_slug}/dashboards/"] + const description = spec.paths["/organizations/{organization_id_or_slug}/dashboards/"] .post.requestBody.content["application/json"].schema.properties.permissions.description; expect(description).toEqual(expect.any(String)); expect(v.getDescription(vCreateOrganizationDashboardData.entries.body.entries.permissions.wrapped)).toBe(description); diff --git a/test/docs.test.ts b/test/docs.test.ts index fb6afb8..b9302e4 100644 --- a/test/docs.test.ts +++ b/test/docs.test.ts @@ -152,7 +152,7 @@ describe("API reference data", () => { test("covers every tag and operation the spec documents", () => { expect(tags.map(tag => tag.name)).toEqual(spec.tags.map((tag: { name: string }) => tag.name)); - expect(operations.map(operation => `${operation.method} ${API_BASE_PATH}${operation.path}`)).toEqual( + expect(operations.map(operation => `${operation.method} ${operation.path}`)).toEqual( sourceOperations.map(({ path, method }) => `${method.toUpperCase()} ${path}`), ); });