aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-09 15:22:51 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-09 15:22:51 +0200
commit8f34baffb57d45adeb45ee11412d57690658ec57 (patch)
treee2dbc438eb6e0110aba17f1723f30bcdc0be4afc
parent2b3a4790759168c4f17129f719f96f63a2c6765b (diff)
downloadfengari-8f34baffb57d45adeb45ee11412d57690658ec57.tar.gz
fengari-8f34baffb57d45adeb45ee11412d57690658ec57.tar.bz2
fengari-8f34baffb57d45adeb45ee11412d57690658ec57.zip
Set WEB flag for individual tests
-rwxr-xr-xtests/manual-tests/lua-cli.js2
-rw-r--r--tests/test-suite/calls.js2
-rw-r--r--tests/test-suite/constructs.js2
-rw-r--r--tests/test-suite/locals.js2
-rw-r--r--tests/test-suite/strings.js2
-rw-r--r--tests/test-suite/vararg.js4
6 files changed, 13 insertions, 1 deletions
diff --git a/tests/manual-tests/lua-cli.js b/tests/manual-tests/lua-cli.js
index 5e47b93..378b5f7 100755
--- a/tests/manual-tests/lua-cli.js
+++ b/tests/manual-tests/lua-cli.js
@@ -1,6 +1,8 @@
#!/usr/bin/env node
"use strict";
+global.WEB = false;
+
const lua = require('../../src/lua.js');
const lauxlib = require('../../src/lauxlib.js');
const readlineSync = require('readline-sync');
diff --git a/tests/test-suite/calls.js b/tests/test-suite/calls.js
index 15e9998..63d7f35 100644
--- a/tests/test-suite/calls.js
+++ b/tests/test-suite/calls.js
@@ -2,6 +2,8 @@
const test = require('tape');
+global.WEB = false;
+
const lauxlib = require("../../src/lauxlib.js");
const lua = require('../../src/lua.js');
diff --git a/tests/test-suite/constructs.js b/tests/test-suite/constructs.js
index da5d979..b6a44cf 100644
--- a/tests/test-suite/constructs.js
+++ b/tests/test-suite/constructs.js
@@ -2,6 +2,8 @@
const test = require('tape');
+global.WEB = false;
+
const lauxlib = require("../../src/lauxlib.js");
const lua = require('../../src/lua.js');
diff --git a/tests/test-suite/locals.js b/tests/test-suite/locals.js
index 93dd27c..78eb24d 100644
--- a/tests/test-suite/locals.js
+++ b/tests/test-suite/locals.js
@@ -2,6 +2,8 @@
const test = require('tape');
+global.WEB = false;
+
const lauxlib = require("../../src/lauxlib.js");
const lua = require('../../src/lua.js');
diff --git a/tests/test-suite/strings.js b/tests/test-suite/strings.js
index 48f742c..033b324 100644
--- a/tests/test-suite/strings.js
+++ b/tests/test-suite/strings.js
@@ -2,6 +2,8 @@
const test = require('tape');
+global.WEB = false;
+
const lauxlib = require("../../src/lauxlib.js");
const lua = require('../../src/lua.js');
diff --git a/tests/test-suite/vararg.js b/tests/test-suite/vararg.js
index 3fbb8b8..0dab1b6 100644
--- a/tests/test-suite/vararg.js
+++ b/tests/test-suite/vararg.js
@@ -2,6 +2,8 @@
const test = require('tape');
+global.WEB = false;
+
const lauxlib = require("../../src/lauxlib.js");
const lua = require('../../src/lua.js');
@@ -223,4 +225,4 @@ test("[test-suite] vararg: bug in 5.2.2", function (t) {
}, "Lua program ran without error");
-}); \ No newline at end of file
+});