chore: remove private underscores in gesture.ts (#7021)

* chore: remove private underscores in gesture.ts

* chore: format

* chore: remove a stale todo
This commit is contained in:
Rachel Fenichel
2023-05-01 09:09:46 -07:00
committed by GitHub
parent a520b88098
commit fea91af90e
2 changed files with 201 additions and 206 deletions

View File

@@ -28,7 +28,7 @@ suite('Gesture', function() {
const gestureWorkspace = fieldWorkspace.targetWorkspace || fieldWorkspace;
const gesture = gestureWorkspace.currentGesture_;
chai.assert.exists(gesture, 'Gesture exists after pointerdown.');
const isFieldClickSpy = sinon.spy(gesture, 'isFieldClick_');
const isFieldClickSpy = sinon.spy(gesture, 'isFieldClick');
dispatchPointerEvent(eventTarget, 'pointerup');
dispatchPointerEvent(eventTarget, 'click');
@@ -60,7 +60,7 @@ suite('Gesture', function() {
test('Constructor', function() {
const e = {id: 'dummy_test_event'};
const gesture = new Blockly.Gesture(e, this.workspace);
chai.assert.equal(gesture.mostRecentEvent_, e);
chai.assert.equal(gesture.mostRecentEvent, e);
chai.assert.equal(gesture.creatorWorkspace, this.workspace);
});