From: Wolfram Schneider Date: Wed, 18 Dec 2013 16:16:27 +0000 (+0000) Subject: run with pp2 and sp X-Git-Tag: 0.9.1~29 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=39a083ccf3f11375777e0d0f3375756ac4099fb3;p=mkws-moved-to-github.git run with pp2 and sp --- diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js index 1c530fa..6ec792d 100644 --- a/test/spec/mkws-config.js +++ b/test/spec/mkws-config.js @@ -18,8 +18,12 @@ describe("Check mkws_config object", function () { expect(mkws.locale_lang.da.Location).toMatch(/^Lokation$/); }); - it("mkws_config service proxy enabled", function () { - expect(mkws_config.use_service_proxy).toBe(true); + it("mkws_config service proxy enabled/disabled", function () { + if (mkws_config.use_service_proxy) { + expect(mkws_config.use_service_proxy).toBe(true); + } else { + expect(mkws_config.use_service_proxy).toBe(false); + } }); }); @@ -30,8 +34,12 @@ describe("Check pazpar2 config", function () { expect(mkws_config.pazpar2_url).toMatch(/^(\/|http:\/\/)/) }); - it("usesessions false", function () { - expect(mkws.usesessions).toBe(false); + it("Check usesessions true/false", function () { + if (mkws_config.use_service_proxy) { + expect(mkws.usesessions).toBe(false); + } else { + expect(mkws.usesessions).toBe(true); + } }); it("my_paz is defined", function () {