2 describe("Check mkws_config object", function() {
3 it("mkws_config exists", function() {
4 expect(mkws_config).not.toBe(undefined);
7 it("mkws_config service proxy config", function() {
8 expect(mkws_config.service_proxy_url).toBe(undefined);
11 it("mkws_config locale check German", function() {
12 expect(mkws_locale_lang.de.Authors).toMatch(/^Autoren$/);
13 expect(mkws_locale_lang.de.Location).toMatch(/^Ort$/);
15 it("mkws_config locale check Danish", function() {
16 expect(mkws_locale_lang.da.Authors).toMatch(/^Forfattere$/);
17 expect(mkws_locale_lang.da.Location).toMatch(/^Lokation$/);
20 it("mkws_config service proxy enabled", function() {
21 expect(mkws_config.use_service_proxy).toBe(true);
27 describe("Check pazpar2 config", function() {
28 it("pazpar2path is a path or an full URL", function() {
29 expect(pazpar2path).toMatch(/^(\/|http:\/\/)/)
32 it("usesessions false", function() {
33 expect(usesessions).toBe(false);
36 it("my_paz is defined", function() {
37 expect(my_paz).not.toBe(undefined);
41 describe("Check pazpar2 runtime", function() {
42 it("pazpar2 was successfully initialize", function() {
43 expect(mkws_config.error).toBe(undefined);