From: Wolfram Schneider Date: Wed, 28 Jan 2015 13:56:43 +0000 (+0000) Subject: improve logging for translate check X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=2c1020a69e9779e0ec6a1c7d70d2e8d57ea97a5f;p=mkws-moved-to-github.git improve logging for translate check --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index bd60454..6db773e 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -740,9 +740,12 @@ describe("Check SortBy options", function () { describe("Check translations", function () { var $ = mkws.$; + // handle html entities, "Zurück" => "Zurück" var M = function (string) { - return $("").html(mkws.M(string)).text() + var text = $("").html(mkws.M(string)).text() + debug("translate check for: " + text); + return text; }; var lang = function () { return mkws.config.lang @@ -829,7 +832,7 @@ describe("Check translations", function () { expect($(list[2]).text()).toBe(M("Authors")); }); - it("facets navigation", function () { + it("facets navigation/filter", function () { var list = $(".mkws-navi > span"); expect(list.length).toBe(2);