mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
Do not error if order cycle loads before enterprises
This commit is contained in:
@@ -342,6 +342,8 @@ describe 'OrderCycle services', ->
|
||||
|
||||
expect(Enterprise.totalVariants(enterprise)).toEqual(5)
|
||||
|
||||
it 'returns zero when enterprise is null', ->
|
||||
expect(Enterprise.totalVariants(null)).toEqual(0)
|
||||
|
||||
describe 'EnterpriseFee service', ->
|
||||
$httpBackend = null
|
||||
|
||||
Reference in New Issue
Block a user