X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..f562e4c6e5fac7bcb445985b99acbea4d706e6f0:/src/core/test/unit/spec/lang/Error.js diff --git a/src/core/test/unit/spec/lang/Error.js b/src/core/test/unit/spec/lang/Error.js index 639b2a49..bc5100b1 100644 --- a/src/core/test/unit/spec/lang/Error.js +++ b/src/core/test/unit/spec/lang/Error.js @@ -57,7 +57,7 @@ describe("Ext.Error", function() { Ext.Error.raise('foo'); } catch (err) {} - expect(Ext.global.console.error).toHaveBeenCalledWith('foo'); + expect(Ext.global.console.error).toHaveBeenCalledWith('[E] foo'); }); it("should log the error object to the console", function() { @@ -114,13 +114,13 @@ describe("Ext.Error", function() { } }); - it("should log a warning to the console", function() { + it("should log an error to the console", function() { spyOn(Ext.global.console, 'error'); try { Ext.Error.raise({msg: 'foo'}); } catch (err) {} - expect(Ext.global.console.error).toHaveBeenCalledWith('foo'); + expect(Ext.global.console.error).toHaveBeenCalledWith('[E] foo'); }); it("should log the error object to the console", function() {