check if the URL href attribute is equal to what we display as text
authorWolfram Schneider <wosch@indexdata.dk>
Fri, 24 Jan 2014 13:01:00 +0000 (13:01 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Fri, 24 Jan 2014 13:01:00 +0000 (13:01 +0000)
test/spec/mkws-pazpar2.js

index 1c8afd1..cce9148 100644 (file)
@@ -295,6 +295,7 @@ describe("Show record", function () {
             debug("URL: " + urls[i].href);
             expect(urls[i].href).not.toBe(null);
             expect(urls[i].href).toMatch(/^https?:\/\/[a-z0-9]+\.[0-9a-z].*\//i);
+            expect(urls[i].href).toBe(urls[i].text);
         }
     });
 });