Files
iD/test/spec/Entity.js
Tom MacWright a9fa9daf1b Merge branch 'underscore' into pure-models
Start testing.

Conflicts:
	js/iD/Connection.js
	js/iD/Node.js
2012-10-16 16:30:16 -04:00

21 lines
416 B
JavaScript

describe('Entity', function() {
var entity;
beforeEach(function() {
entity = new iD.Entity();
});
it('has no entity type', function() {
expect(entity.entityType).toEqual('');
});
it('can count its tags', function() {
expect(entity.numTags()).toEqual(0);
entity.tags = {
foo: 'bar',
alice: 'bar'
};
expect(entity.numTags()).toEqual(2);
});
});