diff --git a/spec/api-browser-window-spec.coffee b/spec/api-browser-window-spec.coffee index bcf308a2803..c6a7283ff3d 100644 --- a/spec/api-browser-window-spec.coffee +++ b/spec/api-browser-window-spec.coffee @@ -77,10 +77,11 @@ describe 'browser-window module', -> w.close() describe 'BrowserWindow.capturePage(rect, callback)', -> - it 'calls the callback with a Buffer', -> + it 'calls the callback with a Buffer', (done) -> w = new BrowserWindow(show: false) w.capturePage {x: 0, y: 0, width: 100, height: 100}, (image) -> - assert.equal image.constructor.name, 'SlowBuffer' + assert.equal image.constructor.name, 'Buffer' + done() w.close() describe 'beforeunload handler', ->