From e1a5a04d34aa70aef4f44ea5ec0690efd1810362 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Tue, 17 Oct 2023 14:46:44 +0200 Subject: [PATCH] chore: update test --- src/test/e2e/api/openapi/openapi.e2e.test.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/e2e/api/openapi/openapi.e2e.test.ts b/src/test/e2e/api/openapi/openapi.e2e.test.ts index 96c4a406f221..2997d93d189c 100644 --- a/src/test/e2e/api/openapi/openapi.e2e.test.ts +++ b/src/test/e2e/api/openapi/openapi.e2e.test.ts @@ -84,15 +84,15 @@ describe('subpath handling', () => { .expect('Content-Type', /json/) .expect(200); - // ensure that paths on this server don't start with - // the base uri path. Because it is possible that some - // paths /should/ start with whatever we set, we just - // need there to be one path that doesn't - const notAllPathsStartWithTheSubpath = Object.keys(paths).some( + // ensure that paths on this server don't start with the base + // uri path. At the time of writing, none of our paths should + // do this. That might change in the future, but it seems + // unlikely as it would change our whole API structure. + const noPathsStartWithSubpath = Object.keys(paths).every( (p) => !p.startsWith('/hosted'), ); - expect(notAllPathsStartWithTheSubpath).toBe(true); + expect(noPathsStartWithSubpath).toBe(true); }); });