Skip to content

Commit

Permalink
tweaked test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewplummer committed May 24, 2024
1 parent 11c71cc commit f837c7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/api/src/routes/__tests__/uploads.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('/1/uploads', () => {
expect(response.body.data.filename).toBe('test.png');
});

it('should not be able to access private upload as viewer', async () => {
it('should be able to access private upload as viewer', async () => {
const manager = await importFixtures('users/jack');
const upload = await createUpload({
private: true,
Expand All @@ -54,7 +54,8 @@ describe('/1/uploads', () => {
user: manager,
}
);
expect(response.status).toBe(401);
expect(response.status).toBe(200);
expect(response.body.data.filename).toBe('test.png');
});

it('should not allow access private upload when unauthenticated', async () => {
Expand Down

0 comments on commit f837c7a

Please sign in to comment.