Skip to content

Commit 3437850

Browse files
committed
add validator test
1 parent b522b01 commit 3437850

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/middlewares/tasks-validator.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,13 +333,14 @@ describe("getTasks validator", function () {
333333
expect(nextMiddlewareSpy.callCount).to.be.equal(1);
334334
});
335335

336-
it("should pass the request when correct parameters are passed: page, dev, status and size", async function () {
336+
it("should pass the request when correct parameters are passed: page, dev, status, sixe and searchterm", async function () {
337337
const req = {
338338
query: {
339339
dev: "true",
340340
size: 3,
341341
page: 0,
342342
status: TASK_STATUS.ASSIGNED,
343+
q: "searchterm",
343344
},
344345
};
345346
const res = {};

0 commit comments

Comments
 (0)