Fix spec to make the test usefull

This commit is contained in:
Gaetan Craig-Riou
2024-09-02 12:23:27 +10:00
parent 627c9eede2
commit 703ad26773

View File

@@ -171,10 +171,14 @@ describe "LineItemsCtrl", ->
it "asks for confirmation only if orders will be canceled", ->
spyOn(window, "ofnCancelOrderAlert")
line_item3.checked = true
scope.deleteLineItems(scope.line_items)
line_item1.checked = true
scope.deleteLineItems(scope.line_items)
expect(ofnCancelOrderAlert).toHaveBeenCalled()
describe "check boxes for line items", ->
line_item1 = line_item2 = null