Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Dec 8, 2022
1 parent 2b7f8d9 commit bfb2ab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __test__/integration/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ describe("Integration test", () => {
test("check response", async () => {
const query = new q(edges);
const res = await query.query(false);
const mydisease_res = await axios.get("http://mydisease.info/v1/disease/MONDO:0002494?fields=mondo.descendants&dotfield=true");
expect(res.length).toEqual(mydisease_res.data["mondo.descendants"].length)
const mydisease_res = await axios.get("http://mydisease.info/v1/disease/MONDO:0002494?fields=mondo.children&dotfield=true");
expect(res.length).toEqual(mydisease_res.data["mondo.children"].length)
})
})
})

0 comments on commit bfb2ab4

Please sign in to comment.