Prevent Jasmine tests from redirecting in dev mode

Also prevent Jasmine from attempting to load deleted templates
This commit is contained in:
Renzo Lucioni
2015-01-11 16:08:29 -05:00
parent 66e6d1cf7a
commit 8ef0e77e46
3 changed files with 3 additions and 3 deletions

View File

@@ -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');

View File

@@ -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() {

View File

@@ -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'
];