mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-05 02:41:33 +00:00
Changing convention for angular resource services to generic 'byID' object and 'all' array
This commit is contained in:
@@ -70,7 +70,7 @@ describe "LineItemsCtrl", ->
|
||||
expect(scope.distributors).toDeepEqual [ distributor ]
|
||||
|
||||
it "stores enterprises in an list that is accessible by id", ->
|
||||
expect(Enterprises.enterprisesByID[1]).toDeepEqual supplier
|
||||
expect(Enterprises.byID[1]).toDeepEqual supplier
|
||||
|
||||
it "gets order cycles", ->
|
||||
expect(scope.orderCycles).toDeepEqual [ orderCycle ]
|
||||
|
||||
Reference in New Issue
Block a user