Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Oct 17, 2023
1 parent c1946dd commit e1a5a04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/e2e/api/openapi/openapi.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
});

Expand Down

0 comments on commit e1a5a04

Please sign in to comment.