From: Wolfram Schneider Date: Tue, 20 Aug 2013 15:51:57 +0000 (+0200) Subject: pazpar2 checks X-Git-Tag: 0.9.1~202^2~117 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=4fb4f24e7b1fbad03af40a6a1e30637a90b89514;hp=6fd5d9a4cd8512c6e23109be5832b1d06a4045dc;p=mkws-moved-to-github.git pazpar2 checks --- diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js index 80a3b43..478a4a1 100644 --- a/test/spec/mkws-config.js +++ b/test/spec/mkws-config.js @@ -20,24 +20,21 @@ describe("Check mkws_config object", function() { it("mkws_config service proxy enabled", function() { expect(mkws_config.use_service_proxy).toBe(true); }); + }); -/* -describe("Check service proxy URL", function() { - var timerCallback; - beforeEach(function() { - timerCallback = jasmine.createSpy('timerCallback'); - jasmine.Clock.useMock(); +describe("Check pazpar2 config", function() { + it("pazpar2path is a path or an full URL", function() { + expect(pazpar2path).toMatch(/^(\/|http:\/\/)/) }); - it("causes an interval to be called synchronously", function() { - setTimeout(function() { - timerCallback(); - }, 500); + it("usesessions false", function() { + expect(usesessions).toBe(false); + }); - jasmine.Clock.tick(1501); - expect(mkws_config.service_proxy_url).toMatch(/service-proxy/); + it("my_paz is defined", function() { + expect(my_paz).not.toBe(undefined); }); }); -*/ \ No newline at end of file +