Move transients to graph (fixes #285)

This commit is contained in:
John Firebaugh
2012-12-25 13:30:31 -08:00
parent 9885b55125
commit c66ea58d56
3 changed files with 34 additions and 33 deletions
-10
View File
@@ -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');
});