From b5b9849463244c21090416027d408d43a9aeba2c Mon Sep 17 00:00:00 2001 From: NeuralFlux <40491005+NeuralFlux@users.noreply.github.com> Date: Wed, 17 Jul 2024 17:16:42 -0400 Subject: [PATCH] fix: update test cases based on latest ontology --- __test__/index.test.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/__test__/index.test.js b/__test__/index.test.js index a74a9c5..6e92b7b 100644 --- a/__test__/index.test.js +++ b/__test__/index.test.js @@ -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 @@ -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'); });