Update type to level in debugger message spec

This commit is contained in:
Kevin Sawicki 2016-12-19 11:28:08 -08:00 committed by Birunthan Mohanathas
parent 873e6e5e6b
commit 2f26dbf39e

View file

@ -102,7 +102,7 @@ describe('debugger module', function () {
} }
w.webContents.debugger.on('message', function (e, method, params) { w.webContents.debugger.on('message', function (e, method, params) {
if (method === 'Console.messageAdded') { if (method === 'Console.messageAdded') {
assert.equal(params.message.type, 'log') assert.equal(params.message.level, 'log')
assert.equal(params.message.url, url) assert.equal(params.message.url, url)
assert.equal(params.message.text, 'a') assert.equal(params.message.text, 'a')
w.webContents.debugger.detach() w.webContents.debugger.detach()