mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
Move transients to graph (fixes #285)
This commit is contained in:
@@ -7,10 +7,6 @@ describe('iD.Entity', function () {
|
||||
it("freezes tags", function () {
|
||||
expect(Object.isFrozen(iD.Entity().tags)).to.be.true;
|
||||
});
|
||||
|
||||
it("does not freeze transients", function () {
|
||||
expect(Object.isFrozen(iD.Entity().transients)).to.be.false;
|
||||
});
|
||||
}
|
||||
|
||||
describe(".id", function () {
|
||||
@@ -57,12 +53,6 @@ describe('iD.Entity', function () {
|
||||
expect(attrs).to.eql({tags: {foo: 'bar'}});
|
||||
});
|
||||
|
||||
it("doesn't copy transients", function () {
|
||||
var entity = iD.Entity();
|
||||
entity.transients['foo'] = 'bar';
|
||||
expect(entity.update({}).transients).not.to.have.property('foo');
|
||||
});
|
||||
|
||||
it("doesn't copy prototype properties", function () {
|
||||
expect(iD.Entity().update({})).not.to.have.ownProperty('update');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user