mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Remove coreContext.changes passthrough function
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user