478a4a159372801b416b594864f89418c0e19ca7
[mkws-moved-to-github.git] / test / spec / mkws-config.js
1
2 describe("Check mkws_config object", function() {
3   it("mkws_config exists", function() {
4     expect(mkws_config).not.toBe(undefined);
5   });
6
7   it("mkws_config service proxy config", function() {
8     expect(mkws_config.service_proxy_url).toBe(undefined);
9   });
10
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$/);
14   });
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$/);
18   });
19
20   it("mkws_config service proxy enabled", function() {
21     expect(mkws_config.use_service_proxy).toBe(true);
22   });
23
24 });
25
26
27 describe("Check pazpar2 config", function() {
28   it("pazpar2path is a path or an full URL", function() {
29     expect(pazpar2path).toMatch(/^(\/|http:\/\/)/)
30   });
31
32   it("usesessions false", function() {
33     expect(usesessions).toBe(false);
34   });
35
36   it("my_paz is defined", function() {
37     expect(my_paz).not.toBe(undefined);
38   });
39 });
40