Files
iD/test/spec/Way.js
Tom MacWright 4bc8313157 Fix tests
2012-11-13 21:23:23 -05:00

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);
});
});
});