Remove coreContext.changes passthrough function

This commit is contained in:
Quincy Morgan
2020-03-22 11:06:58 -07:00
parent 6087aae21f
commit ebc3a2c322
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -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;
+2 -2
View File
@@ -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();
});
});