Browse Source

spec: update 'BrowserWindow.fromBrowserView(browserView) returns undefined if not attached - returns undefined if not attached' to match docs (null not undefined)

Samuel Attard 6 years ago
parent
commit
5c8c31c93d
2 changed files with 3 additions and 3 deletions
  1. 1 1
      spec/api-browser-window-spec.js
  2. 2 2
      spec/assert-helpers.js

+ 1 - 1
spec/api-browser-window-spec.js

@@ -1014,7 +1014,7 @@ describe('BrowserWindow module', () => {
 
     it('returns undefined if not attached', () => {
       w.setBrowserView(null)
-      assert.strictEqual(BrowserWindow.fromBrowserView(bv), undefined)
+      assert.strictEqual(BrowserWindow.fromBrowserView(bv), null)
     })
   })
 

+ 2 - 2
spec/assert-helpers.js

@@ -3,5 +3,5 @@ function resolverGetters (...args) {
 }
 
 module.exports = {
-  resolverGetters,
-}
+  resolverGetters
+}