Skip to content

Commit

Permalink
fix: small changes to test objects
Browse files Browse the repository at this point in the history
change pubchem -> pubchem.compound

make CHEMBL7512_DB_IDS writing match the format of the other constants
  • Loading branch information
colleenXu committed Jul 19, 2021
1 parent 3693891 commit 94892bb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions __tests__/unittest/bioentity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const CDK2_DB_IDs = {
const RILUZOLE_DB_IDS = {
"CHEMBL.COMPOUND": ["CHEMBL744"],
"name": ["Riluzole", "RILUZOLE"],
"PUBCHEM": ["5070"],
"PUBCHEM.COMPOUND": ["5070"],
}

const DB_ID_WITH_NO_PRIMARY = {
Expand All @@ -22,7 +22,11 @@ const DISEASE_DB_IDS = {
"MONDO": ["MONDO:12345"]
}

const CHEMBL7512_DB_IDS = { "CHEMBL.COMPOUND": ["CHEMBL7512"], "PUBCHEM": ["53428"] }
const CHEMBL7512_DB_IDS = {
"CHEMBL.COMPOUND": ["CHEMBL7512"],
"PUBCHEM.COMPOUND": ["53428"]
}

describe("Test ResolvableBioEntity Class", () => {
test("return semanticType when called semanticType property", () => {
const entity = new ResolvableBioEntity("Gene", CDK2_DB_IDs, {});
Expand Down Expand Up @@ -147,4 +151,4 @@ describe("Test IrresolvableBioEntity Class", () => {

})

})
})

0 comments on commit 94892bb

Please sign in to comment.