Skip to content

Commit

Permalink
chore: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
tripodsan committed Mar 9, 2023
1 parent 896986f commit 43b8fbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/json-pipe.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ describe('JSON Pipe Test', () => {
state.config.access = { allow: '*@adobe.com' };
const resp = await jsonPipe(state, new PipelineRequest('https://json-filter.com/?limit=10'));
assert.strictEqual(resp.status, 401);
assert.strictEqual(resp.body, '');
assert.deepStrictEqual(Object.fromEntries(resp.headers.entries()), {
'x-error': 'unauthorized.',
});
});

it('creates correct filter with no offset', async () => {
Expand Down

0 comments on commit 43b8fbd

Please sign in to comment.