Prevent Jasmine tests from redirecting in dev mode
Also prevent Jasmine from attempting to load deleted templates
This commit is contained in:
@@ -157,6 +157,9 @@ define([
|
||||
it('toggles between the login and registration forms', function() {
|
||||
ajaxSpyAndInitialize(this, 'login');
|
||||
|
||||
// Prevent URL from updating
|
||||
spyOn(history, 'pushState').andCallFake( function() {} );
|
||||
|
||||
// Simulate selection of the registration form
|
||||
selectForm('register');
|
||||
assertForms('#register-form', '#login-form');
|
||||
|
||||
@@ -136,7 +136,6 @@ define([
|
||||
|
||||
setFixtures( '<div id="current-step-container"></div>' );
|
||||
TemplateHelpers.installTemplate( 'templates/verify_student/make_payment_step' );
|
||||
TemplateHelpers.installTemplate( 'templates/verify_student/requirements' );
|
||||
});
|
||||
|
||||
it( 'allows users to choose a suggested price', function() {
|
||||
|
||||
@@ -12,8 +12,6 @@ define(['jquery', 'js/common_helpers/template_helpers', 'js/verify_student/views
|
||||
'intro_step',
|
||||
'make_payment_step',
|
||||
'payment_confirmation_step',
|
||||
'progress',
|
||||
'requirements',
|
||||
'review_photos_step',
|
||||
'webcam_photo'
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user