Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
47979e5b
Commit
47979e5b
authored
Oct 30, 2014
by
Diana Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for the enrollment_interface
parent
fc468bf6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
lms/static/js/spec/main.js
+6
-2
lms/static/js/spec/student_account/access_spec.js
+1
-1
lms/static/js/spec/student_account/enrollment_interface_spec.js
+9
-2
No files found.
lms/static/js/spec/main.js
View file @
47979e5b
...
...
@@ -260,7 +260,10 @@
exports
:
'NotificationView'
,
deps
:
[
'backbone'
,
'jquery'
,
'underscore'
]
},
'js/student_account/enrollment_interface'
:
{
exports
:
'js/student_account/enrollment_interface'
,
deps
:
[
'jquery'
,
'underscore'
,
'gettext'
]
},
// Student account registration/login
// Loaded explicitly until these are converted to RequireJS
'js/student_account/views/FormView'
:
{
...
...
@@ -310,7 +313,7 @@
'js/student_account/views/RegisterView'
,
'underscore.string'
]
}
,
}
},
});
...
...
@@ -327,6 +330,7 @@
'lms/include/js/spec/student_account/login_spec.js'
,
'lms/include/js/spec/student_account/register_spec.js'
,
'lms/include/js/spec/student_account/password_reset_spec.js'
,
'lms/include/js/spec/student_account/enrollment_interface_spec.js'
,
'lms/include/js/spec/student_profile/profile.js'
,
]);
...
...
lms/static/js/spec/student_account/access_spec.js
View file @
47979e5b
define
([
'js/common_helpers/template_helpers'
,
'js/student_account/views/AccessView'
],
function
(
TemplateHelpers
)
{
function
(
TemplateHelpers
,
AccessView
)
{
describe
(
'edx.student.account.AccessView'
,
function
()
{
'use strict'
;
...
...
lms/static/js/spec/student_account/enrollment_interface_spec.js
View file @
47979e5b
define
([
'js/common_helpers/template_helpers'
,
'js/student_account/enrollment_interface'
],
function
(
TemplateHelpers
)
{
function
(
TemplateHelpers
,
EnrollmentInterface
)
{
describe
(
"edx.student.account.EnrollmentInterface"
,
function
()
{
'use strict'
;
it
(
"find course modes using modeInArray "
,
function
()
{
var
course_modes
=
[
{
slug
:
'honor'
},
{
slug
:
'professional'
}
];
],
expect
(
EnrollmentInterface
.
modeInArray
(
'professional'
)).
toBe
(
true
);
expect
(
EnrollmentInterface
.
modeInArray
(
'audit'
)).
toBe
(
false
);
});
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment