From: Wolfram Schneider Date: Wed, 18 Dec 2013 11:04:33 +0000 (+0000) Subject: indent X-Git-Tag: 0.9.1~37 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=cc91110c6456559b62cd809507f069b1d9261b5c;p=mkws-moved-to-github.git indent --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 77d9ba3..b14d217 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -8,23 +8,24 @@ var debug_level = mkws.debug_level; var debug = mkws.debug_function; var get_hit_counter = function () { - // not yet here - if ($("#mkwsPager").length == 0) return -1; - - var found = $("#mkwsPager").text(); - var re = /\([A-Za-z]+:\s+([0-9]+)\)/; - re.exec(found); - var hits = -1; - - if (RegExp.$1) { - hits = parseInt(RegExp.$1); - expect(hits).toBeGreaterThan(0); - } - - //debug("Hits: " + hits); - return hits; + // not yet here + if ($("#mkwsPager").length == 0) + return -1; + + var found = $("#mkwsPager").text(); + var re = /\([A-Za-z]+:\s+([0-9]+)\)/; + re.exec(found); + var hits = -1; + + if (RegExp.$1) { + hits = parseInt(RegExp.$1); + expect(hits).toBeGreaterThan(0); } + //debug("Hits: " + hits); + return hits; +} + describe("Check pazpar2 search", function () { it("pazpar2 was successfully initialize", function () { expect(mkws_config.error).toBe(undefined);