mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
16 lines
413 B
CoffeeScript
16 lines
413 B
CoffeeScript
describe "Producers service", ->
|
|
Producers = null
|
|
Enterprises = null
|
|
enterprises = [
|
|
{is_primary_producer: true}
|
|
]
|
|
|
|
beforeEach ->
|
|
module 'Darkswarm'
|
|
angular.module('Darkswarm').value('enterprises', enterprises)
|
|
inject ($injector)->
|
|
Producers = $injector.get("Producers")
|
|
|
|
it "delegates producers array to Enterprises", ->
|
|
expect(Producers.producers[0]).toBe enterprises[0]
|