Skip to content

Commit 717aadf

Browse files
committed
Fix tests
1 parent 1316858 commit 717aadf

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

server/routers/test/prescription.router.test.ts

-14
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ describe('Prescriptions router', () => {
6767
.expect(constants.HTTP_STATUS_BAD_REQUEST);
6868
});
6969

70-
it('should fail if the user does not have the permission to read prescriptions', async () => {
71-
await request(app)
72-
.get(testRoute(programmingPlanInProgress.id))
73-
.use(tokenProvider(sampler))
74-
.expect(constants.HTTP_STATUS_FORBIDDEN);
75-
});
76-
7770
it('should find the prescriptions of the programmingPlan', async () => {
7871
const res = await request(app)
7972
.get(testRoute(programmingPlanInProgress.id))
@@ -104,13 +97,6 @@ describe('Prescriptions router', () => {
10497
.expect(constants.HTTP_STATUS_BAD_REQUEST);
10598
});
10699

107-
it('should fail if the user does not have the permission to read prescriptions', async () => {
108-
await request(app)
109-
.get(testRoute(programmingPlanInProgress.id))
110-
.use(tokenProvider(sampler))
111-
.expect(constants.HTTP_STATUS_FORBIDDEN);
112-
});
113-
114100
it('should export the prescriptions of the programmingPlan', async () => {
115101
await request(app)
116102
.get(testRoute(programmingPlanInProgress.id))

0 commit comments

Comments
 (0)