From: Wolfram Schneider Date: Wed, 10 Sep 2014 10:39:50 +0000 (+0000) Subject: config.pazpar2_url can be undefined, part of MKWS-253 X-Git-Tag: 1.0.0~39^2~6^2 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=f75e11f24f8dcbff0f27ff4b3b1c81be38f41fb4 config.pazpar2_url can be undefined, part of MKWS-253 --- diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js index 4cba621..b6852a9 100644 --- a/test/spec/mkws-config.js +++ b/test/spec/mkws-config.js @@ -35,7 +35,7 @@ describe("Check mkws.config object", function () { describe("Check pazpar2 config", function () { it("pazpar2_url is a path or an full URL", function () { - expect(mkws.config.pazpar2_url).toMatch(/^(\/|https?:\/\/)/) + expect(mkws.config.pazpar2_url).toMatch(/^(\/|https?:\/\/|undefined$)/) }); });