Skip to content

Commit

Permalink
Fix js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thallada committed Nov 14, 2016
1 parent 51c1f68 commit 58086e8
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions analytics_dashboard/static/js/test/specs/tracking-view-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ define(['jquery', 'models/course-model', 'models/tracking-model', 'models/user-m
expect(view.segment.page).toHaveBeenCalledWith({
courseId: 'this/is/a/course',
org: 'org',
label: 'course_mylens_myreport'
label: 'course_mylens_myreport',
current_page: {
scope: 'course',
lens: 'mylens',
report: 'myreport',
depth: '',
name: 'course_mylens_myreport'
}
});
expect(view.segment.load).toHaveBeenCalled();
});
Expand Down Expand Up @@ -174,7 +181,14 @@ define(['jquery', 'models/course-model', 'models/tracking-model', 'models/user-m
label: 'course_mylens_myreport',
courseId: 'my/course/id',
org: 'org',
param: 'my-param'
param: 'my-param',
current_page: {
scope: 'course',
lens: 'mylens',
report: 'myreport',
depth: '',
name: 'course_mylens_myreport'
}
});
});

Expand Down Expand Up @@ -225,7 +239,14 @@ define(['jquery', 'models/course-model', 'models/tracking-model', 'models/user-m
label: 'course_mylens_myreport',
courseId: 'my/course/id',
org: 'org',
param: 'my-param'
param: 'my-param',
current_page: {
scope: 'course',
lens: 'mylens',
report: 'myreport',
depth: '',
name: 'course_mylens_myreport'
}
});
});
});
Expand Down Expand Up @@ -305,7 +326,14 @@ define(['jquery', 'models/course-model', 'models/tracking-model', 'models/user-m
courseId: 'my/course/id',
org: 'org',
param: 'my-param',
foo: 'bar'
foo: 'bar',
current_page: {
scope: 'course',
lens: 'mylens',
report: 'myreport',
depth: '',
name: 'course_mylens_myreport'
}
}
);
});
Expand Down

0 comments on commit 58086e8

Please sign in to comment.