Skip to content

Commit

Permalink
test: fix equivalentIDs test
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Jan 4, 2023
1 parent a015626 commit add1e58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions __test__/integration/QueryNode.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describe('Testing QueryNode Module', () => {

test('If equivalent ids are not empty, return all primary semantic types defined in equivalent entities', () => {
const node = new QNode({ id: 'n1', categories: 'Gene' });
node.equivalentIDs = {
node.setEquivalentIDs({
A: [
{
semanticType: 'm',
Expand All @@ -161,7 +161,8 @@ describe('Testing QueryNode Module', () => {
semanticTypes: ['x', 'y'],
},
],
};
});
console.log(node.getCategories())
expect(node.getCategories()).toEqual(['Gene', 'm', 'p', 'x']);
});
});
Expand Down

0 comments on commit add1e58

Please sign in to comment.