Skip to content

Commit

Permalink
fix: update test cases based on latest ontology
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuralFlux committed Jul 17, 2024
1 parent ea9cda8 commit b5b9849
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions __test__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ test('go', () => {
expect(descendants['GO:0032553']).toContain('GO:0032559');
});

//HP:0003812 -> HP:0003829 -> HP:0003831
//Phenotypic variability -> Incomplete penetrance -> Age-dependent penetrance
//HP:0003812 -> HP:0003828
//Phenotypic variability -> Variable expressivity
test('hp', () => {
let curies = ['HP:0003812'];
let descendants = getDescendants(curies);
expect(descendants['HP:0003812']).toContain('HP:0003829');
expect(descendants['HP:0003812']).toContain('HP:0003831');
expect(descendants['HP:0003812']).toContain('HP:0003828');
});

//MONDO:0001517 -> MONDO:0001955 -> MONDO:0024275
Expand All @@ -57,8 +56,7 @@ test('umls', () => {
test('multiple', () => {
let curies = ['HP:0003812', 'MONDO:0001517'];
let descendants = getDescendants(curies);
expect(descendants['HP:0003812']).toContain('HP:0003829');
expect(descendants['HP:0003812']).toContain('HP:0003831');
expect(descendants['HP:0003812']).toContain('HP:0003828');
expect(descendants['MONDO:0001517']).toContain('MONDO:0001955');
expect(descendants['MONDO:0001517']).toContain('MONDO:0024275');
});
Expand Down

0 comments on commit b5b9849

Please sign in to comment.