Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed Jul 11, 2023
1 parent 9d1174b commit bf9b14a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -836,9 +836,9 @@ test('allows declaring route access to flag a route as public or internal', asyn
registerRouter(router);

await server.start();
await supertest(innerServer.listener).get('/with-access').expect(200, { access });
await supertest(innerServer.listener).get('/with-access').expect(200, { access: 'internal' });

await supertest(innerServer.listener).get('/without-access').expect(200, { access: 'public' });
await supertest(innerServer.listener).get('/without-access').expect(200, { access: 'internal' });
});

test(`sets access flag to 'internal' if not defined`, async () => {
Expand Down

0 comments on commit bf9b14a

Please sign in to comment.