mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
Fix checkout total display
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
describe "Shipping method service", ->
|
||||
ShippingMethods = null
|
||||
shippingMethods = [
|
||||
{id: 1, price: "1.2"}
|
||||
]
|
||||
|
||||
beforeEach ->
|
||||
module 'Darkswarm'
|
||||
angular.module('Darkswarm').value('shippingMethods', shippingMethods)
|
||||
inject ($injector)->
|
||||
ShippingMethods = $injector.get("ShippingMethods")
|
||||
|
||||
it "converts price to float", ->
|
||||
expect(ShippingMethods.shipping_methods[0].price).toEqual 1.2
|
||||
Reference in New Issue
Block a user