Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
as1729 committed Jan 5, 2024
1 parent b932112 commit 905db08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/__tests__/lib/access-helpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ describe('Acces Helper Module', () => {
context('isMicrosoftSafeLinksRequest', () => {
it('early-returns if request is from Microsoft Safe Links', async () => {
const resFake = sinon.fake.returns(true);
resFake.json = sinon.fake.returns(true);
const nextFake = sinon.fake.returns(true);
const requestFake = {
headers: {
Expand All @@ -105,6 +106,7 @@ describe('Acces Helper Module', () => {
});
it('proceeds normally if request is not from Microsoft Safe Links', async () => {
const resFake = sinon.fake.returns(true);
resFake.json = sinon.fake.returns(true);
const nextFake = sinon.fake.returns(true);
const requestFake = {
headers: {
Expand Down

0 comments on commit 905db08

Please sign in to comment.