Skip to content

Commit

Permalink
Patch!: updated unit tests to match previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 authored Jan 24, 2024
1 parent 8aa1eb1 commit f1aaef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mongoose-filter-query/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe("test mongoose-filter-query", () => {
});
test("undefined", async () => {
mongooseFilterQuery(req, {}, () => {});
expect(req.query.include).toEqual([]);
expect(req.query.include).toEqual(undefined);
});
});
describe("select", () => {
Expand All @@ -56,7 +56,7 @@ describe("test mongoose-filter-query", () => {
});
test("undefined", async () => {
mongooseFilterQuery(req, {}, () => {});
expect(req.query.select).toEqual("");
expect(req.query.select).toEqual(undefined);
});
});
test("handle error", async () => {
Expand Down

0 comments on commit f1aaef0

Please sign in to comment.