From ebc3a2c322b85399d601384557fd92d2a34b76f8 Mon Sep 17 00:00:00 2001 From: Quincy Morgan Date: Sun, 22 Mar 2020 11:06:58 -0700 Subject: [PATCH] Remove coreContext.changes passthrough function --- modules/core/context.js | 1 - test/spec/modes/add_point.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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(); }); });