From 710ca230f30d2b455c16a503c5d05ab142280d17 Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Thu, 23 Nov 2017 20:58:37 +0100 Subject: [PATCH] update tests to reflect new behaviour --- spec/api-browser-window-spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/api-browser-window-spec.js b/spec/api-browser-window-spec.js index 2adc82df05d..b5b7543952f 100644 --- a/spec/api-browser-window-spec.js +++ b/spec/api-browser-window-spec.js @@ -2177,8 +2177,11 @@ describe('BrowserWindow module', () => { assert.equal(w.isMaximizable(), true) w.setFullScreenable(false) assert.equal(w.isMaximizable(), true) + }) + + it('is set to false when resizable state is set to false', () => { w.setResizable(false) - assert.equal(w.isMaximizable(), true) + assert.equal(w.isMaximizable(), false) }) })