mirror of https://gitee.com/bigwinds/arangodb
Issue #1675 . allow enabling strict mode in tests
This commit is contained in:
parent
72e661d0ea
commit
c60d1f5b44
|
@ -186,7 +186,7 @@ function RunTest (path, outputReply) {
|
|||
|
||||
content = fs.read(path);
|
||||
|
||||
content = "(function(){require('jsunity').jsUnity.attachAssertions();" + content + "\n})";
|
||||
content = "(function(){require('jsunity').jsUnity.attachAssertions(); return (function() {" + content + "}());\n})";
|
||||
f = internal.executeScript(content, undefined, path);
|
||||
|
||||
if (f === undefined) {
|
||||
|
|
Loading…
Reference in New Issue