From 94892bb7d5508ee20a0fdfcd232c28289d2be663 Mon Sep 17 00:00:00 2001 From: Colleen Xu Date: Tue, 6 Jul 2021 20:56:50 -0700 Subject: [PATCH] fix: small changes to test objects change pubchem -> pubchem.compound make CHEMBL7512_DB_IDS writing match the format of the other constants --- __tests__/unittest/bioentity.test.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/__tests__/unittest/bioentity.test.ts b/__tests__/unittest/bioentity.test.ts index 9819457..92163c0 100644 --- a/__tests__/unittest/bioentity.test.ts +++ b/__tests__/unittest/bioentity.test.ts @@ -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 = { @@ -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, {}); @@ -147,4 +151,4 @@ describe("Test IrresolvableBioEntity Class", () => { }) -}) \ No newline at end of file +})