Add/modify karma specs

This commit is contained in:
Steve Pettitt
2016-03-02 20:07:39 +00:00
parent 6a2319e16d
commit c1d068aeb9

View File

@@ -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