Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
llambeau committed May 10, 2024
1 parent 932bdce commit 80c3651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/server/rest/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe('server/createApi', () => {
expect(args[0]).to.equal('foo-bar');
expect(args[1]).to.eql(jobPayload);
// default validation mode
expect(args[3]).to.eql({ strict: false });
expect(args[3]).to.eql({ strict: false, headers: {} });
done();
});
});
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('server/createApi', () => {
const { args } = dispatcher.dispatchBatch.getCall(0);
expect(args[0]).to.equal('foo-bar');
expect(args[1]).to.eql(jobPayload);
expect(args[3]).to.eql({ strict: true });
expect(args[3]).to.eql({ strict: true, headers: {} });
done();
});
});
Expand Down

0 comments on commit 80c3651

Please sign in to comment.