From f7ebfff8ae39f74e6a88fbf5586778099d3b279e Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Mon, 11 Dec 2017 14:05:07 -0800 Subject: [PATCH] :construction_worker: Properly test x vs y --- spec/api-menu-spec.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/api-menu-spec.js b/spec/api-menu-spec.js index 3c6353db0ce4..b61db17baacc 100644 --- a/spec/api-menu-spec.js +++ b/spec/api-menu-spec.js @@ -283,41 +283,41 @@ describe('Menu module', () => { }) it('returns immediately', () => { - const { browserWindow, x, y } = menu.popup(w, {x: 100, y: 100}) + const { browserWindow, x, y } = menu.popup(w, {x: 100, y: 101}) assert.equal(browserWindow, w) assert.equal(x, 100) - assert.equal(y, 100) + assert.equal(y, 101) menu.closePopup(w) }) it('works without a given BrowserWindow and options', () => { - const { browserWindow, x, y } = menu.popup({x: 100, y: 100}) + const { browserWindow, x, y } = menu.popup({x: 100, y: 101}) assert.equal(browserWindow.constructor.name, 'BrowserWindow') assert.equal(x, 100) - assert.equal(y, 100) + assert.equal(y, 101) menu.closePopup() }) it('works without a given BrowserWindow', () => { - const { browserWindow, x, y } = menu.popup(100, 100) + const { browserWindow, x, y } = menu.popup(100, 101) assert.equal(browserWindow.constructor.name, 'BrowserWindow') assert.equal(x, 100) - assert.equal(y, 100) + assert.equal(y, 101) menu.closePopup() }) it('works with a given BrowserWindow and no options', () => { - const { browserWindow, x, y } = menu.popup(w, 100, 100) + const { browserWindow, x, y } = menu.popup(w, 100, 101) assert.equal(browserWindow, w) assert.equal(x, 100) - assert.equal(y, 100) + assert.equal(y, 101) menu.closePopup(w) })