Split out and test Way

This commit is contained in:
Tom MacWright
2012-10-16 16:40:54 -04:00
parent a9fa9daf1b
commit 2c9b377b5e
4 changed files with 144 additions and 316 deletions
+15
View File
@@ -0,0 +1,15 @@
describe('Way', function() {
var way;
beforeEach(function() {
way = new iD.Way();
});
it('is a way', function() {
expect(way.entityType).toEqual('way');
});
it('has zero nodes by default', function() {
expect(way.length()).toEqual(0);
});
});