diaspora/spec/javascripts/app/views/location_view_spec.js
2015-02-08 23:41:31 +01:00

17 lines
465 B
JavaScript

describe("app.views.Location", function(){
beforeEach(function(){
OSM = {};
OSM.Locator = function(){return { getAddress:function(){}}};
this.view = new app.views.Location();
});
describe("When it gets instantiated", function(){
it("creates #location_address", function(){
expect($("#location_address")).toBeTruthy();
expect($("#location_coords")).toBeTruthy();
expect($("#hide_location")).toBeTruthy();
});
});
});