diff --git a/modules/core/context.js b/modules/core/context.js index 6d5b469f1..cb23665b0 100644 --- a/modules/core/context.js +++ b/modules/core/context.js @@ -487,7 +487,6 @@ export function coreContext() { _uploader = coreUploader(context); context.graph = _history.graph; - context.changes = _history.changes; context.intersects = _history.intersects; context.pauseChangeDispatch = _history.pauseChangeDispatch; context.resumeChangeDispatch = _history.resumeChangeDispatch; diff --git a/test/spec/modes/add_point.js b/test/spec/modes/add_point.js index 0b728e870..cb00a7fa4 100644 --- a/test/spec/modes/add_point.js +++ b/test/spec/modes/add_point.js @@ -22,7 +22,7 @@ describe.skip('iD.modeAddPoint', function() { it('adds a point', function() { happen.mousedown(context.surface().node(), {}); happen.mouseup(window, {}); - expect(context.changes().created).to.have.length(1); + expect(context.history().changes().created).to.have.length(1); context.mode().exit(); d3.select('window').on('click.draw-block', null); }); @@ -31,7 +31,7 @@ describe.skip('iD.modeAddPoint', function() { happen.mousedown(context.surface().node(), {}); happen.mouseup(window, {}); expect(context.mode().id).to.equal('select'); - expect(context.mode().selectedIDs()).to.eql([context.changes().created[0].id]); + expect(context.mode().selectedIDs()).to.eql([context.history().changes().created[0].id]); context.mode().exit(); }); });