-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into repo-sync/workflows/default
- Loading branch information
Showing
12 changed files
with
1,165 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[codespell] | ||
skip = .git,*.pdf,*.svg,package-lock.json | ||
skip = .git,*.pdf,*.svg,package-lock.json,./static/toolTerms.json | ||
# | ||
# ignore-words-list = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- name: Set up node env | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
cypress/unit/store-getter-getAssessmentToolJSONOutput.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { getters } from "~/store"; | ||
|
||
let store = { | ||
|
||
getters: getters, | ||
|
||
state: { | ||
dataDictionary: { | ||
annotated: { | ||
column1: { | ||
Description: "Some cool description here.", | ||
missingValues: ["Missing"] | ||
} | ||
} | ||
}, | ||
toolTerms: [ | ||
{ | ||
label: "MOCA", | ||
identifier: "cogAtlas:MOCA", | ||
selected: false | ||
} | ||
], | ||
columnToToolMap: { | ||
column1: "cogAtlas:MOCA" | ||
} | ||
|
||
} | ||
}; | ||
|
||
describe("getAssessmentToolJSONOutput", () => { | ||
|
||
it("Make sure Assessment tool json output is schema compliant", () => { | ||
|
||
const output = store.getters.getAssessmentToolJSONOutput(store.state)("column1"); | ||
expect(output).to.deep.equal( | ||
{ | ||
Annotations: { | ||
IsAbout: { | ||
"TermURL": "nb:Assessment", | ||
"Label": "Assessment tool" | ||
}, | ||
"IsPartOf": { | ||
"TermURL": "cogAtlas:MOCA", | ||
"Label": "MOCA" | ||
}, | ||
MissingValues: ["Missing"] | ||
}, | ||
Description: "Some cool description here." | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
[ | ||
{ | ||
"label":"Acute depression", | ||
"identifier":"snomed:712823008" | ||
}, | ||
{ | ||
"label":"Anxiety", | ||
"identifier":"snomed:48694002" | ||
}, | ||
{ | ||
"label":"Anxiety disorder", | ||
"identifier":"snomed:197480006" | ||
}, | ||
{ | ||
"label":"Attention deficit hyperactivity disorder", | ||
"identifier":"snomed:406506008" | ||
}, | ||
{ | ||
"label":"Autism spectrum disorder", | ||
"identifier":"snomed:35919005" | ||
}, | ||
{ | ||
"label":"Borderline personality disorder", | ||
"identifier":"snomed:20010003" | ||
}, | ||
{ | ||
"label":"Concussion injury of brain", | ||
"identifier":"snomed:110030002" | ||
}, | ||
{ | ||
"label":"Disorder of cardiovascular system", | ||
"identifier":"snomed:49601007" | ||
}, | ||
{ | ||
"label":"Dyslexia", | ||
"identifier":"snomed:59770006" | ||
}, | ||
{ | ||
"label":"Fibromyalgia", | ||
"identifier":"snomed:203082005" | ||
}, | ||
{ | ||
"label":"Hearing problem", | ||
"identifier":"snomed:300228004" | ||
}, | ||
{ | ||
"label":"Mental disorder", | ||
"identifier":"snomed:74732009" | ||
}, | ||
{ | ||
"label":"Migraine", | ||
"identifier":"snomed:37796009" | ||
}, | ||
{ | ||
"label":"Schizophrenia", | ||
"identifier":"snomed:58214004" | ||
}, | ||
{ | ||
"label":"Separation anxiety", | ||
"identifier":"snomed:126943008" | ||
}, | ||
{ | ||
"label":"Smoker", | ||
"identifier":"snomed:77176002" | ||
}, | ||
{ | ||
"label":"Social phobia", | ||
"identifier":"snomed:25501002" | ||
}, | ||
{ | ||
"label":"Specific spelling disorder", | ||
"identifier":"snomed:268738002" | ||
}, | ||
{ | ||
"label":"Traumatic brain injury", | ||
"identifier":"snomed:127295002" | ||
}, | ||
{ | ||
"label":"Visual impairment", | ||
"identifier":"snomed:397540003" | ||
}, | ||
{ | ||
"label":"Healthy Control", | ||
"identifier":"ncit:C94342" | ||
} | ||
] |
Oops, something went wrong.