Skip to content

Commit

Permalink
test: extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 2, 2024
1 parent fcecfe4 commit bb7ef68
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/core/src/__tests__/Matchers/headers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ describe('header matching', () => {
).toBe(false);
});

it('not error when request sent without headers', () => {
const route = new Route({
missingHeaders: ['a'],
response: 200,
});

expect(
route.matcher({
url: 'http://a.com/',
options: {},
}),
).toBe(true);
});

it('be case insensitive', () => {
const route = new Route({
headers: { a: 'b' },
Expand Down

0 comments on commit bb7ef68

Please sign in to comment.