Closed sssoja closed 2 years ago
Form.svelte
responseStore.js
ResponseStore
snapshot
getQa
ref
fieldValue
npm test
npm run dev
localhost:5000
console.log
What changes have you made?
Form.svelte
component toresponseStore.js
by creating aResponseStore
classsnapshot
andgetQa
snapshot
should return an array made up of the currentref
(same as the field) and the currentfieldValue
getQa
should return an array ofsnapshot
arraysWhich issue(s) does this PR address?
63
How to test
npm test
to check that all tests are passingnpm run dev
onlocalhost:5000
and use the browser to submit test answers to the survey.console.log
on thegetQa
method to check that all questions and answers are being "stored" in an array