Files
iD/test/spec/Way.js
2012-12-03 15:11:49 -05:00

15 lines
314 B
JavaScript

describe('Way', function() {
var way;
beforeEach(function() {
way = { type: 'way', nodes: [{id: 'n1'}, {id: 'n2'}] };
});
describe('#isClosed', function() {
it('is not closed with two distinct nodes ', function() {
expect(iD.Way.isClosed(way)).to.equal(false);
});
});
});