From: Wolfram Schneider Date: Fri, 7 Mar 2014 10:25:49 +0000 (+0000) Subject: add a prefix for jasmine console log messages X-Git-Tag: 1.0.0~1318^2~29 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=756d64ef9e9b276ccf0028af414c7db96c76d14b;p=mkws-moved-to-github.git add a prefix for jasmine console log messages --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 12677a8..733f7a4 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -6,7 +6,7 @@ // get references from mkws.js, lazy evaluation var debug = function (text) { - mkws.debug(text) + mkws.debug("Jasmine: " + text) } // Define empty mkws_config for simple applications that don't define it. @@ -87,13 +87,13 @@ describe("Check MOTD before search", function () { expect($("#testMOTD").length).toBe(1); expect($("#testMOTD").text()).toMatch("^ *$"); }); - + it("mkwsMOTDContainer has received the text", function () { expect($(".mkwsMOTDContainer").length).toBe(1); expect($(".mkwsMOTDContainer").text()).toMatch(/MOTD/); }); - + }); describe("Check pazpar2 search", function () {