From 8f34baffb57d45adeb45ee11412d57690658ec57 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 9 May 2017 15:22:51 +0200 Subject: Set WEB flag for individual tests --- tests/manual-tests/lua-cli.js | 2 ++ tests/test-suite/calls.js | 2 ++ tests/test-suite/constructs.js | 2 ++ tests/test-suite/locals.js | 2 ++ tests/test-suite/strings.js | 2 ++ tests/test-suite/vararg.js | 4 +++- 6 files changed, 13 insertions(+), 1 deletion(-) 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 +}); -- cgit v1.2.3-70-g09d2