Add mocked shopfront

This commit is contained in:
Jean-Baptiste Bellet
2022-03-29 15:24:15 +02:00
committed by Maikel Linke
parent 1c68293cac
commit af69064d3a

View File

@@ -20,7 +20,7 @@ describe "ShopVariantCtrl", ->
CartMock =
adjust: ->
true
ctrl = $controller 'ShopVariantCtrl', {$scope: scope, $modal: $modal, Cart: CartMock}
ctrl = $controller 'ShopVariantCtrl', {$scope: scope, $modal: $modal, Cart: CartMock, Shopfront: {}}
it "initializes the quantity for shop display", ->
expect(scope.variant.line_item.quantity).toEqual 0