From 4fb4f24e7b1fbad03af40a6a1e30637a90b89514 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 20 Aug 2013 17:51:57 +0200 Subject: [PATCH] pazpar2 checks --- test/spec/mkws-config.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) 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 + -- 1.7.10.4