Disallow nowhere.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user