projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d42607
)
document why we check for a boolean JS object true or false
author
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 8 Aug 2014 13:08:29 +0000
(13:08 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Fri, 8 Aug 2014 13:08:29 +0000
(13:08 +0000)
test/spec/mkws-config.js
patch
|
blob
|
history
diff --git
a/test/spec/mkws-config.js
b/test/spec/mkws-config.js
index
d168fb2
..
59a0132
100644
(file)
--- a/
test/spec/mkws-config.js
+++ b/
test/spec/mkws-config.js
@@
-18,6
+18,10
@@
describe("Check mkws.config object", function () {
expect(mkws.locale_lang.da.Location).toMatch(/^Lokation$/);
});
+ /*
+ * this is a test if the config value is a boolean JavaScript object: true or false
+ * and nothing else (0, '0', undefined, "false" etc.)
+ */
it("mkws.config service proxy enabled/disabled", function () {
if (mkws.config.use_service_proxy) {
expect(mkws.config.use_service_proxy).toBe(true);