Fix broken JS specs

This commit is contained in:
Rohan Mitchell
2014-08-19 16:47:51 +10:00
parent e3b4f6efc1
commit b35c5e902f
2 changed files with 1 additions and 2 deletions

View File

@@ -4,7 +4,6 @@
//= require angular-sanitize
//= require angular-mocks
//= require angular-cookies
//= require angular-timer.min.js
//= require angular-backstretch.js
//= require lodash.underscore.js
//= require angular-flash.min.js

View File

@@ -52,7 +52,7 @@ describe "CheckoutCtrl", ->
expect(storage.bind).toHaveBeenCalledWith(scope, "Checkout.ship_address_same_as_billing", {storeName: "#{prefix}_sameasbilling", defaultValue: true})
it "it can retrieve data from localstorage", ->
prefix = "order_#{scope.order.id}#{scope.order.user_id}#{CurrentHubMock.hub.id}"
prefix = "order_#{scope.order.id}#{CurrentUser?.id}#{CurrentHubMock.hub.id}"
expect(localStorage.getItem("#{prefix}_email")).toMatch "public"
it "does not store secrets in local storage", ->