mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Add/modify karma specs
This commit is contained in:
@@ -9,6 +9,16 @@ describe "Hubs service", ->
|
||||
orders_close_at: new Date()
|
||||
type: "hub"
|
||||
visible: true
|
||||
latitude: 50
|
||||
longitude: 50
|
||||
}
|
||||
{
|
||||
id: 3
|
||||
active: false
|
||||
orders_close_at: new Date()
|
||||
type: "hub"
|
||||
visible: true
|
||||
|
||||
}
|
||||
]
|
||||
|
||||
@@ -24,3 +34,6 @@ describe "Hubs service", ->
|
||||
|
||||
it "builds MapMarkers from enterprises", ->
|
||||
expect(OfnMap.enterprises[0].id).toBe enterprises[0].id
|
||||
|
||||
it "excludes enterprises without latitude or longitude", ->
|
||||
expect(OfnMap.enterprises.map (e) -> e.id).not.toContain enterprises[1].id
|
||||
|
||||
Reference in New Issue
Block a user