Ensure that dates in BOM AJAX requests have timezones

This commit is contained in:
Rob Harrington
2015-11-25 15:06:15 +11:00
parent 7e6b43266f
commit b341c1ef8a
2 changed files with 8 additions and 3 deletions

View File

@@ -19,7 +19,9 @@ describe "LineItemsCtrl", ->
LineItems = _LineItems_
OrderCycles = _OrderCycles_
VariantUnitManager = _VariantUnitManager_
spyOn(window, "daysFromToday").andReturn "SomeDate"
spyOn(window, "formatDate").andReturn "SomeDate"
spyOn(window, "parseDate").andReturn "SomeDate"
supplier = { id: 1, name: "Supplier" }
distributor = { id: 5, name: "Distributor" }