Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 85b3a5a

Browse files
authored
Merge pull request #168 from osu-cass/dev
Dev
2 parents 9aad5e6 + b904110 commit 85b3a5a

File tree

49 files changed

+21500
-21109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+21500
-21109
lines changed

mocks/ItemPage/mocks.ts

+48-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
ItemIsaapModel,
99
AccResourceGroupModel,
1010
AboutItemModel,
11-
ResourceSelectionsModel
11+
ResourceSelectionsModel,
12+
ItemPageContainerProps
1213
} from "@src/index";
1314
import { aboutItemMockModel } from "@mocks/AboutItem/mocks";
1415
import { allAccessibilityResourceGroups } from "@mocks/Accessibility/mocks";
@@ -38,6 +39,16 @@ export const onSave = (accGRoups: AccResourceGroupModel[]) => {};
3839
// tslint:disable-next-line:no-empty
3940
export const onReset = () => {};
4041

42+
export const itemModelMock: ItemModel = {
43+
bankKey: 24,
44+
itemKey: 15
45+
};
46+
47+
export const itemModelMockEmpty: ItemModel = {
48+
bankKey: 0,
49+
itemKey: 0
50+
};
51+
4152
export const itemPageModelMock: ItemPageModel = {
4253
itemViewerServiceUrl: "http://ivs.smarterbalanced.org/",
4354
itemNames: "187-3000",
@@ -149,3 +160,39 @@ export const itemPageMockPropsNoItem: ItemViewerContainerProps = {
149160
braillePassageCodes: [],
150161
defaultIsaapCodes: "TDS_ITM1;TDS_APC_SCRUBBER;"
151162
};
163+
164+
export const itemPageContainerPropsMock: ItemPageContainerProps = {
165+
aboutThisClient,
166+
itemPageClient,
167+
itemAccessibilityClient,
168+
showRubrics: true,
169+
itemIsaap: {
170+
...itemModelMock,
171+
isaap: "Stuff and things"
172+
},
173+
updateIsaap: (isaap: string) => {
174+
return;
175+
},
176+
updateCookie: (cookieName: string, cookieValue: string) => {
177+
return;
178+
},
179+
errorRedirectPath: "stuff and things"
180+
};
181+
182+
export const itemPageContainerPropsNoItemMock: ItemPageContainerProps = {
183+
aboutThisClient,
184+
itemPageClient,
185+
itemAccessibilityClient,
186+
showRubrics: true,
187+
itemIsaap: {
188+
...itemModelMockEmpty,
189+
isaap: ""
190+
},
191+
updateIsaap: (isaap: string) => {
192+
return;
193+
},
194+
updateCookie: (cookieName: string, cookieValue: string) => {
195+
return;
196+
},
197+
errorRedirectPath: "Stuff and things"
198+
};

mocks/Rubric/ScoringOptionsMocks.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { SmarterAppOptionModel } from "./RubricModels";
2+
3+
export const scoringOptionsMock: SmarterAppOptionModel[] = [
4+
{
5+
name: "A",
6+
value: "14",
7+
feedback: "CORRECT: Because its the right answer",
8+
language: "EN-US",
9+
answer: true
10+
},
11+
{
12+
name: "B",
13+
value: "a million",
14+
feedback: "INCORRECT: Because its the wrong answer",
15+
language: "EN-US",
16+
answer: false
17+
}
18+
];

mocks/Rubric/mocks.ts

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { RubricModalProps } from "@src/Rubric/RubricModal";
2+
3+
export const rubricModalMockProps: RubricModalProps = {
4+
showModal: true,
5+
rubrics: [
6+
{
7+
language: "English",
8+
rubricEntries: [
9+
{
10+
scorepoint: "2",
11+
name: "\n Rubric 2",
12+
value:
13+
'<p style="text-decoration:underline; font-weight:bold; ">3 point text </p><p style="">&#xA0;</p><p style="">The student determines that Emily can make it to school on time at her current rate of speed and includes a valid explanation containing a full chain of reasoning that supports this conclusion. The student may make minor computation errors that do not affect the reasonableness of the explanation. </p><p style="">&#xA0;</p><p style="">&#xA0;</p><p style="text-decoration:underline; font-weight:bold; ">2 point text </p><p style="text-decoration:underline; font-weight:bold; ">&#xA0;</p><p style="">The student determines that Emily can make it to school on time at her current rate of speed and includes a valid explanation containing an incomplete chain of reasoning that supports this conclusion. (An incomplete chain of reasoning can be defined by missing process steps or unsupported calculations in an otherwise complete chain of reasoning.) </p><p style="">OR </p><p style="">The student determines that Emily can make it to school on time at her current rate of speed and includes a valid explanation containing a full chain of reasoning that supports this conclusion, but makes computation errors that affect the reasonableness of the explanation. </p>'
14+
},
15+
{
16+
scorepoint: "1",
17+
name: "\n Rubric 1",
18+
value:
19+
'<p style="">The student completes the task and reaches a conclusion. The student\'s explanation attempts to relate distance to time, but contains errors in fundamental mathematical procedures. </p><p style="">&#xA0;</p>'
20+
},
21+
{
22+
scorepoint: "0",
23+
name: "\n Rubric 0",
24+
value:
25+
'<p style="">The student demonstrates a lack of comprehension in regard to the mathematical content and practices essential to the task. </p>'
26+
}
27+
],
28+
samples: [
29+
{
30+
maxValue: "2",
31+
minValue: "2",
32+
sampleResponses: [
33+
{
34+
purpose: "OtherExemplar",
35+
scorePoint: "2",
36+
name: "2-Point Other Official Sample Answers\n ",
37+
sampleContent:
38+
'<p style=""><span style="text-decoration:underline; font-weight:bold; ">Sample 1: </span>&#xA0;</p><p style="">Emily can travel 3/4 mile in under 5 minutes, so she can travel 3 miles (4x as far) in under 20 minutes (4x as long.) This means that Emily will have traveled 3 miles before 8:45 (20 minutes after she left.) Then there is only .42 miles left to go, and since .42 miles is less than 3/4 mile, we know she can cover that distance in less than 5 minutes. That means she will get to school before 8:50, so she will be on time. </p><p style="">&#xA0;</p><p style=""><span style="text-decoration:underline; font-weight:bold; ">Sample 2:</span> &#xA0;</p><p style="">Emily travels 3/4 mile in 4.5 minutes, so to find her rate of travel we would divide time by distance and get (4.5) / (.75) = 6 minutes per mile. Multiply 6 minutes per mile times the distance she has to travel (3.42 miles) to find the time it would take for her to get to school (20.52.) Since 20.52 is less than 21 minutes, we know it will take her less than 21 minutes to get to school. 8:25 + 21 minutes is 8:46, which is before 8:50, so she will make it to school on time. </p>'
39+
}
40+
]
41+
}
42+
]
43+
}
44+
]
45+
};

0 commit comments

Comments
 (0)