From: Wolfram Schneider Date: Fri, 24 Jan 2014 13:01:00 +0000 (+0000) Subject: check if the URL href attribute is equal to what we display as text X-Git-Tag: 1.0.0~1610^2 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=f0a5d471eec61096a3f8287c47b0d5c7fea0f30b check if the URL href attribute is equal to what we display as text --- diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index 1c8afd1..cce9148 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -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); } }); });