From f0a5d471eec61096a3f8287c47b0d5c7fea0f30b Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Fri, 24 Jan 2014 13:01:00 +0000 Subject: [PATCH] check if the URL href attribute is equal to what we display as text --- test/spec/mkws-pazpar2.js | 1 + 1 file changed, 1 insertion(+) 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); } }); }); -- 1.7.10.4