Disallow nowhere.

This commit is contained in:
Tim Schaub
2012-06-20 16:11:15 +02:00
parent f74d265dec
commit 5eeb21c125
2 changed files with 22 additions and 8 deletions

View File

@@ -1,11 +1,12 @@
describe("ol.loc", function() {
it("allows empty construction", function() {
var loc;
it("doesn't allow empty construction", function() {
expect(function() {
// nowhere
var loc = ol.loc();
}).toThrow();
// nowhere
loc = ol.loc();
expect(loc).toBeA(ol.Loc);
});
it("allows construction from an obj config", function() {