Skip to content

Commit

Permalink
skip attribute test, comment on failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Sep 7, 2021
1 parent 30f465c commit 9445420
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions __tests__/integration/biolink_based_resolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe("Test ID Resolver", () => {
expect(res['kkk:123'][0].label).toEqual('kkk:123')
})

// new SRI-based ID resolver failing on this test
test("test large batch of inputs should be correctly resolved", async () => {
const fakeNCBIGeneInputs = [...Array(1990).keys()].map(item => 'NCBIGene:' + item.toString());
const fakeOMIMGeneInputs = [...Array(2300).keys()].map(item => "OMIM:" + item.toString());
Expand Down
6 changes: 4 additions & 2 deletions __tests__/integration/default_resolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ describe("Test ID Resolver", () => {
expect(res['kkk:123'][0].primaryID).toEqual('kkk:123');
expect(res['kkk:123'][0].label).toEqual('kkk:123')
})


// new SRI-based ID resolver failing on this test
test("test large batch of inputs should be correctly resolved", async () => {
const fakeNCBIGeneInputs = [...Array(1990).keys()].map(item => 'NCBIGene:' + item.toString());
const fakeOMIMGeneInputs = [...Array(2300).keys()].map(item => "OMIM:" + item.toString());
Expand Down Expand Up @@ -170,7 +171,8 @@ describe("Test ID Resolver", () => {
expect(res['NCBIGene:1017'][1]).toBeInstanceOf(IrresolvableBioEntity);
})

test("Test chemical attributes are correctly retrieved", async () => {
// skip because new SRI-based ID resolver doesn't fetch node attributes
test.skip("Test chemical attributes are correctly retrieved", async () => {
const resolver = new DefaultIDResolver();
const res = await resolver.resolve({ "SmallMolecule": ["CHEMBL.COMPOUND:CHEMBL744"] });
expect(res["CHEMBL.COMPOUND:CHEMBL744"][0].attributes.drugbank_taxonomy_class).toContain("Benzothiazoles");
Expand Down

0 comments on commit 9445420

Please sign in to comment.