mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 09:57:50 +02:00
Return the empty string when calling toOSM() on entities with test IDs
This commit is contained in:
@@ -32,6 +32,11 @@ describe('iD.osmEntity', function () {
|
||||
describe('.toOSM', function () {
|
||||
it('reverses fromOSM', function () {
|
||||
expect(iD.osmEntity.id.toOSM(iD.osmEntity.id.fromOSM('node', '1'))).to.equal('1');
|
||||
expect(iD.osmEntity.id.toOSM(iD.osmEntity.id.fromOSM('node', '-1'))).to.equal('-1');
|
||||
});
|
||||
|
||||
it('returns the empty string for other strings', function () {
|
||||
expect(iD.osmEntity.id.toOSM('a')).to.equal('');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user