diff --git a/spec/api-session-spec.js b/spec/api-session-spec.js index f5a4cbf56c2a..c34cdfdab0ff 100644 --- a/spec/api-session-spec.js +++ b/spec/api-session-spec.js @@ -226,7 +226,7 @@ describe('session module', function () { it('clears localstorage data', function (done) { ipcMain.on('count', function (event, count) { ipcMain.removeAllListeners('count') - assert(!count) + assert.equal(count, 0) done() }) w.loadURL('file://' + path.join(fixtures, 'api', 'localstorage.html'))