Skip to content

Commit

Permalink
add test no query params
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio committed Sep 15, 2020
1 parent 3d42bc8 commit e4fde6e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/query.params.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ describe(packageJson.name, () => {
expect(r.body.errors).to.be.an('array');
}));

it('should return 200 if no query params are supplied', async () =>
request(app)
.get(`${app.basePath}/no_query_params`)
.expect(200)
.then((r) => {
expect(r.body.complete).to.equal(true);
}));

it('should fail if unknown query param is specified', async () =>
request(app)
.get(`${app.basePath}/pets`)
Expand Down

0 comments on commit e4fde6e

Please sign in to comment.