Skip to content

Commit

Permalink
Fix tests for 403 output
Browse files Browse the repository at this point in the history
  • Loading branch information
nickviola committed Dec 1, 2023
1 parent a3427db commit 3f44fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/test/scan-tasks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ describe('domains', () => {
.get(`/scan-tasks/${scanTask.id}/logs`)
.set('Authorization', createUserToken({}))
.expect(403);
expect(response.text).toEqual('');
expect(response.text).toEqual('Unauthorized access. View logs for details.');

Check failure on line 235 in backend/test/scan-tasks.test.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `'Unauthorized·access.·View·logs·for·details.'` with `⏎········'Unauthorized·access.·View·logs·for·details.'⏎······`
expect(getLogs).not.toHaveBeenCalled();
});
});
Expand Down

0 comments on commit 3f44fb8

Please sign in to comment.