Skip to content

Commit

Permalink
Merge pull request #115 from biothings/fix-846-bte
Browse files Browse the repository at this point in the history
Update tests and GitHub Workflow
  • Loading branch information
tokebe authored Aug 19, 2024
2 parents e375b08 + d30f70f commit 8c1f094
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/test_ws_codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,21 @@ jobs:
id: branch-name
uses: tj-actions/[email protected]

- uses: actions/checkout@v3
- name: Checkout to specific branch
uses: actions/checkout@v3
id: specific-checkout
continue-on-error: true
with:
repository: biothings/biothings_explorer
ref: ${{ steps.branch-name.outputs.current_branch }}

- name: Checkout to main if above failed
if: steps.specific-checkout.outcome == 'failure'
uses: actions/checkout@v3
with:
repository: biothings/biothings_explorer
ref: main

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions __tests__/integration/sri_resolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ describe("Test SRI Resolver", () => {

test("Test handling semantic type conflicts", async () => {
let input = {
"SmallMolecule": ["PUBCHEM.COMPOUND:23680530"]
"MolecularMixture": ["PUBCHEM.COMPOUND:23680530"]
};
const res = await resolveSRI(input);

expect(res["PUBCHEM.COMPOUND:23680530"].primaryTypes.length).toBe(2);
expect(res["PUBCHEM.COMPOUND:23680530"].primaryTypes).toEqual(["MolecularMixture", "SmallMolecule"])
expect(res["PUBCHEM.COMPOUND:23680530"].primaryTypes).toEqual(["SmallMolecule", "MolecularMixture"])
});

test("Test large batch of inputs should be correctly resolved and should not give an error", async () => {
Expand Down

0 comments on commit 8c1f094

Please sign in to comment.