synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
105 lines (104 loc) • 1.98 kB
JavaScript
import { MULTICHOICE_RESPONSE_CONCRETE_TYPE_VALUE as t } from "@sage-bionetworks/synapse-types";
const s = {
questionIndex: 0,
prompt: "mock question 1",
reference: {
wikiPageId: "0",
ownerObjectId: "0",
ownerObjectType: "ENTITY"
},
docLink: "mockDocLink",
helpText: "mock help text",
exclusive: !0,
answers: [
{
answerIndex: 0,
prompt: "mockQuestion1AnswerIndex 0",
isCorrect: !0
},
{
answerIndex: 1,
prompt: "mockQuestion1AnswerIndex 1",
isCorrect: !1
}
]
}, o = {
questionIndex: 1,
prompt: "mock question 2",
reference: {
wikiPageId: "1",
ownerObjectId: "1",
ownerObjectType: "ENTITY"
},
docLink: "mockDocLink",
helpText: "mock help text",
exclusive: !0,
answers: [
{
answerIndex: 0,
prompt: "mockQuestion2AnswerIndex 0",
isCorrect: !0
},
{
answerIndex: 1,
prompt: "mockQuestion2AnswerIndex 1",
isCorrect: !1
}
]
}, i = {
id: 123,
header: "Mock Certification Quiz",
questions: [s, o]
}, e = (r, n) => ({
concreteType: t,
questionIndex: r,
answerIndex: [n]
}), d = {
userId: "abc123",
quizId: 1,
responseId: 123,
score: 2,
passed: !1,
passedOn: (/* @__PURE__ */ new Date()).toDateString(),
corrections: [
{
isCorrect: !1,
question: s,
response: e(0, 1)
//wrong
},
{
isCorrect: !1,
question: o,
response: e(0, 1)
//wrong
}
]
}, p = {
userId: "abc123",
quizId: 1,
responseId: 123,
score: 2,
passed: !0,
passedOn: (/* @__PURE__ */ new Date()).toDateString(),
corrections: [
{
isCorrect: !0,
question: s,
response: e(0, 0)
//correct
},
{
isCorrect: !0,
question: o,
response: e(0, 0)
//correct
}
]
};
export {
d as mockPassingRecordFailed,
p as mockPassingRecordPassed,
i as mockQuiz
};
//# sourceMappingURL=mockCertificationQuiz.js.map