Skip to content

Commit

Permalink
chore: remove empty query from GET /requests middleware test
Browse files Browse the repository at this point in the history
  • Loading branch information
samarpan1738 committed Sep 20, 2024
1 parent 0fef690 commit 4d700da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/unit/middlewares/requests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,7 @@ describe("Create Request Validators", function () {

describe("Get Request Validator", function () {
it("Should pass validation for a valid get request", async function () {
req = {
query: {},
};
req = {};
res = {};
await getRequestsMiddleware(req as any, res as any, nextSpy);
expect(nextSpy.calledOnce).to.equal(true);
Expand Down

0 comments on commit 4d700da

Please sign in to comment.