1 /* Copyright (c) 2013 IndexData ApS. http://indexdata.com
3 * check mkws_config = {} object in browser
7 describe("Check mkws_config object", function () {
8 it("mkws_config exists", function () {
9 expect(mkws_config).not.toBe(undefined);
12 it("mkws_config locale check German", function () {
13 expect(mkws.locale_lang.de.Authors).toMatch(/^Autoren$/);
14 expect(mkws.locale_lang.de.Location).toMatch(/^Ort$/);
16 it("mkws_config locale check Danish", function () {
17 expect(mkws.locale_lang.da.Authors).toMatch(/^Forfattere$/);
18 expect(mkws.locale_lang.da.Location).toMatch(/^Lokation$/);
21 it("mkws_config service proxy enabled", function () {
22 expect(mkws_config.use_service_proxy).toBe(true);
28 describe("Check pazpar2 config", function () {
29 it("pazpar2path is a path or an full URL", function () {
30 expect(mkws_config.pazpar2_url).toMatch(/^(\/|http:\/\/)/)
33 it("usesessions false", function () {
34 expect(mkws.usesessions).toBe(false);
37 it("my_paz is defined", function () {
38 expect(mkws.my_paz).not.toBe(undefined);
42 describe("Check pazpar2 runtime", function () {
43 it("pazpar2 was successfully initialize", function () {
44 expect(mkws_config.error).toBe(undefined);