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);
26 describe("Check service proxy URL", function() {
29 beforeEach(function() {
30 timerCallback = jasmine.createSpy('timerCallback');
31 jasmine.Clock.useMock();
34 it("causes an interval to be called synchronously", function() {
35 setTimeout(function() {
39 jasmine.Clock.tick(1501);
40 expect(mkws_config.service_proxy_url).toMatch(/service-proxy/);