hit counter: will pass the test for Danish and German language
[mkws-moved-to-github.git] / test / spec / mkws-pazpar2.js
index e9f4fab..996a954 100644 (file)
@@ -4,11 +4,13 @@
  *
  */
 
-function get_hit_counter() {
+var debug = mkws.debug;
+
+var get_hit_counter = function () {
     if ($("#mkwsPager").length == 0) return -1;
 
     var found = $("#mkwsPager").text();
-    var re = /found: ([0-9]+)/;
+    var re = /\([A-Za-z]+:\s+([0-9]+)\)/;
     re.exec(found);
     var hits = -1;
 
@@ -202,7 +204,7 @@ describe("Check status client counter", function () {
     }
     var time = get_time();
 
-    it("limit search to first author", function () {
+    it("check status clients", function () {
 
         waitsFor(function () {
             var clients = $("div#mkwsStat span.clients");