diff --git a/test/index.html b/test/index.html index 3dde62ee5..a2baae66d 100644 --- a/test/index.html +++ b/test/index.html @@ -11,8 +11,8 @@ - + @@ -20,6 +20,7 @@ + diff --git a/test/spec/Entity.js b/test/spec/Entity.js index a36aadd85..3541f633d 100644 --- a/test/spec/Entity.js +++ b/test/spec/Entity.js @@ -8,13 +8,4 @@ describe('Entity', function() { 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); - }); }); diff --git a/test/spec/Util.js b/test/spec/Util.js new file mode 100644 index 000000000..71616ca39 --- /dev/null +++ b/test/spec/Util.js @@ -0,0 +1,13 @@ +describe('Util', function() { + var util; + + it('gives unique ids', function() { + var a = iD.Util.id(), + b = iD.Util.id(), + c = iD.Util.id(), + d = iD.Util.id(); + expect(a === b).toEqual(false); + expect(b === c).toEqual(false); + expect(c === d).toEqual(false); + }); +});