Skip to content

Commit

Permalink
Fix spec to make the test usefull
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Sep 2, 2024
1 parent 627c9ee commit 703ad26
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 703ad26

Please sign in to comment.