check translations
[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 describe("Check service proxy URL", function() {
27   var timerCallback;
28
29   beforeEach(function() {
30     timerCallback = jasmine.createSpy('timerCallback');
31     jasmine.Clock.useMock();
32   });
33
34   it("causes an interval to be called synchronously", function() {
35     setTimeout(function() {
36       timerCallback();
37     }, 500);
38
39     jasmine.Clock.tick(1501);
40     expect(mkws_config.service_proxy_url).toMatch(/service-proxy/);
41   });
42 });
43 */