File tree Expand file tree Collapse file tree 2 files changed +54
-2
lines changed Expand file tree Collapse file tree 2 files changed +54
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ tasks: [
3
+ {
4
+ id: 2,
5
+ title: "iReading #1 - Intro and Subchapter #1",
6
+ opens_at: "2015-04-23T18:20:42.891Z",
7
+ due_at: "2015-04-30T18:20:42.891Z",
8
+ type: "reading",
9
+ complete: true
10
+ },
11
+ {
12
+ id: 12,
13
+ title: "Homework #1 - Odd Exercises",
14
+ opens_at: "2015-04-23T18:20:46.595Z",
15
+ due_at: "2015-04-30T18:20:46.595Z",
16
+ type: "homework",
17
+ complete: true
18
+ },
19
+ {
20
+ id: 22,
21
+ title: "iReading #2 - Subchapter #2",
22
+ opens_at: "2015-04-23T18:20:51.601Z",
23
+ due_at: "2015-04-30T18:20:51.601Z",
24
+ type: "reading",
25
+ complete: false
26
+ },
27
+ {
28
+ id: 32,
29
+ title: "Homework #2 - Even Exercises",
30
+ opens_at: "2015-04-23T18:20:54.808Z",
31
+ due_at: "2015-04-30T18:20:54.808Z",
32
+ type: "homework",
33
+ complete: false
34
+ },
35
+ {
36
+ id: 42,
37
+ title: "iReading #3 - Subchapter #3",
38
+ opens_at: "2015-04-23T18:20:59.650Z",
39
+ due_at: "2015-04-30T18:20:59.650Z",
40
+ type: "reading",
41
+ complete: false
42
+ },
43
+ {
44
+ id: 52,
45
+ title: "Homework #3 - Fibonacci Exercises",
46
+ opens_at: "2015-04-23T18:21:04.592Z",
47
+ due_at: "2015-04-30T18:21:04.592Z",
48
+ type: "homework",
49
+ complete: false
50
+ }
51
+ ]
52
+ }
Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ ReactTestUtils = React.addons.TestUtils
7
7
{StudentDashboard } = require ' ../../src/components/student-dashboard'
8
8
{StudentDashboardStore , StudentDashboardActions } = require ' ../../src/flux/student-dashboard'
9
9
10
- DATA = require ' ../../api/courses/1/dashboard.json'
11
10
COURSE_ID = ' 1'
11
+ DATA = require " ../../api/courses/#{ COURSE_ID} /events.json"
12
12
13
13
describe ' Student Dashboard Component' , ->
14
14
beforeEach (done ) ->
15
15
StudentDashboardActions .reset ()
16
16
StudentDashboardActions .loaded (DATA, COURSE_ID)
17
17
routerStub .goTo (" /courses/#{ COURSE_ID} /dashboard" )
18
18
.then (result) =>
19
- @dashboard = ReactTestUtils .findRenderedComponentWithType (result .component ,StudentDashboard)
19
+ @dashboard = ReactTestUtils .findRenderedComponentWithType (result .component , StudentDashboard)
20
20
@state = result
21
21
done ()
22
22
You can’t perform that action at this time.
0 commit comments