check translations
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 20 Aug 2013 15:43:49 +0000 (17:43 +0200)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 20 Aug 2013 15:43:49 +0000 (17:43 +0200)
test/spec/mkws-config.js [new file with mode: 0644]

diff --git a/test/spec/mkws-config.js b/test/spec/mkws-config.js
new file mode 100644 (file)
index 0000000..80a3b43
--- /dev/null
@@ -0,0 +1,43 @@
+
+describe("Check mkws_config object", function() {
+  it("mkws_config exists", function() {
+    expect(mkws_config).not.toBe(undefined);
+  });
+
+  it("mkws_config service proxy config", function() {
+    expect(mkws_config.service_proxy_url).toBe(undefined);
+  });
+
+  it("mkws_config locale check German", function() {
+    expect(mkws_locale_lang.de.Authors).toMatch(/^Autoren$/);
+    expect(mkws_locale_lang.de.Location).toMatch(/^Ort$/);
+  });
+  it("mkws_config locale check Danish", function() {
+    expect(mkws_locale_lang.da.Authors).toMatch(/^Forfattere$/);
+    expect(mkws_locale_lang.da.Location).toMatch(/^Lokation$/);
+  });
+
+  it("mkws_config service proxy enabled", function() {
+    expect(mkws_config.use_service_proxy).toBe(true);
+  });
+});
+
+/*
+describe("Check service proxy URL", function() {
+  var timerCallback;
+
+  beforeEach(function() {
+    timerCallback = jasmine.createSpy('timerCallback');
+    jasmine.Clock.useMock();
+  });
+
+  it("causes an interval to be called synchronously", function() {
+    setTimeout(function() {
+      timerCallback();
+    }, 500);
+
+    jasmine.Clock.tick(1501);
+    expect(mkws_config.service_proxy_url).toMatch(/service-proxy/);
+  });
+});
+*/
\ No newline at end of file