mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
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);
|
|
});
|
|
});
|