Fix failed js test

This commit is contained in:
Bing Xie
2016-09-01 20:29:31 +10:00
parent 63617f80c5
commit ac39c93bbf

View File

@@ -73,6 +73,9 @@ describe "CustomersCtrl", ->
expect(scope.customers).toDeepEqual customers
describe "scope.deleteCustomer", ->
beforeEach ->
spyOn(window, 'confirm').and.returnValue(true)
it "deletes a customer", ->
expect(scope.customers.length).toBe 2
customer = scope.customers[0]