Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Dec 30, 2019
1 parent 0084dff commit ac1734d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/query.params.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,9 @@ describe(packageJson.name, () => {
owner_name: 'carmine',
})
.expect(200));

it("should succeed when query param 'name' has empty value and sets allowEmptyValue: true", async () =>
request(app)
.get(`${app.basePath}/pets?name=&tags=one&limit=10&breed=german_shepherd&owner_name=carmine`)
.expect(200));
});

0 comments on commit ac1734d

Please sign in to comment.