mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
15 lines
313 B
JavaScript
15 lines
313 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)).toEqual(false);
|
|
});
|
|
});
|
|
});
|