mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Minor refactoring from code review with Rohan
This commit is contained in:
@@ -6,19 +6,19 @@ describe "Hubs service", ->
|
||||
id: 2
|
||||
active: false
|
||||
orders_close_at: new Date()
|
||||
enterprise_type: "hub"
|
||||
is_distributor: true
|
||||
}
|
||||
{
|
||||
id: 3
|
||||
active: false
|
||||
orders_close_at: new Date()
|
||||
enterprise_type: "hub"
|
||||
is_distributor: true
|
||||
}
|
||||
{
|
||||
id: 1
|
||||
active: true
|
||||
orders_close_at: new Date()
|
||||
enterprise_type: "hub"
|
||||
is_distributor: true
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ describe "Producers service", ->
|
||||
Producers = null
|
||||
Enterprises = null
|
||||
enterprises = [
|
||||
{enterprise_type: "producer"}
|
||||
{is_primary_producer: true}
|
||||
]
|
||||
|
||||
beforeEach ->
|
||||
|
||||
Reference in New Issue
Block a user