Skip to content

Commit

Permalink
chore: add additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozone committed May 20, 2020
1 parent 1b7a40f commit 56e9d23
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/dataprovider/src/buildWhere.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ describe("buildWhere", () => {
);
});

it("can handle the most simple case", async () => {
//

const filter = {
yearOfBirth: 1879,
};
const result = buildWhere(filter, testUserResource, testIntrospection);

expect(result).toEqual<NexusGenArgTypes["Query"]["users"]["where"]>({
yearOfBirth: {
equals: 1879,
},
});
});

it("returns where with multiple cases when its a string", async () => {
//

Expand Down

0 comments on commit 56e9d23

Please sign in to comment.