mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
a9fa9daf1b
Start testing. Conflicts: js/iD/Connection.js js/iD/Node.js
21 lines
416 B
JavaScript
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);
|
|
});
|
|
});
|