Skip to content

Commit

Permalink
fix entity tests
Browse files Browse the repository at this point in the history
ref #1425
  • Loading branch information
maxgrossman committed Jun 12, 2019
1 parent 21d8219 commit 76fabe0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/spec/osm/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ describe('iD.osmEntity', function () {
expect(iD.Entity({type: 'node'})).be.an.instanceOf(iD.Node);
expect(iD.Entity({type: 'way'})).be.an.instanceOf(iD.Way);
expect(iD.Entity({type: 'relation'})).be.an.instanceOf(iD.Relation);
expect(iD.Entity({id: 'n1'})).be.an.instanceOf(iD.Node);
expect(iD.Entity({id: 'w1'})).be.an.instanceOf(iD.Way);
expect(iD.Entity({id: 'r1'})).be.an.instanceOf(iD.Relation);
expect(iD.Entity({id: 'n1_50'})).be.an.instanceOf(iD.Node);
expect(iD.Entity({id: 'w1_50'})).be.an.instanceOf(iD.Way);
expect(iD.Entity({id: 'r1_50'})).be.an.instanceOf(iD.Relation);
});

if (iD.debug) {
Expand Down Expand Up @@ -65,12 +65,12 @@ describe('iD.osmEntity', function () {
});

it('resets \'id\', \'user\', and \'version\' properties', function () {
var n = iD.Entity({id: 'n', version: 10, user: 'user'}),
var n = iD.Entity({id: 'n_50', version: 10, user: 'user'}),
copies = {};
n.copy(null, copies);
expect(copies.n.isNew()).to.be.ok;
expect(copies.n.version).to.be.undefined;
expect(copies.n.user).to.be.undefined;
expect(copies.n_50.isNew()).to.be.ok;
expect(copies.n_50.version).to.be.undefined;
expect(copies.n_50.user).to.be.undefined;
});

it('copies tags', function () {
Expand Down

0 comments on commit 76fabe0

Please sign in to comment.