-/* Copyright (c) 2013 IndexData ApS. http://indexdata.com
+/* Copyright (c) 2013-2014 IndexData ApS. http://indexdata.com
*
* check mkws_config = {} object in browser
*
describe("Check pazpar2 config", function () {
it("pazpar2path is a path or an full URL", function () {
- expect(mkws_config.pazpar2_url).toMatch(/^(\/|http:\/\/)/)
- });
-
- 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 () {
- expect(mkws.my_paz).not.toBe(undefined);
+ expect(mkws_config.pazpar2_url).toMatch(/^(\/|https?:\/\/)/)
});
});
describe("Check pazpar2 runtime", function () {
- it("pazpar2 was successfully initialize", function () {
+ it("pazpar2 was successfully initialized", function () {
expect(mkws_config.error).toBe(undefined);
});
});