summaryrefslogtreecommitdiff
path: root/tests/load.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/load.js')
-rw-r--r--tests/load.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/load.js b/tests/load.js
index 4df3f6a..a71de6b 100644
--- a/tests/load.js
+++ b/tests/load.js
@@ -25,7 +25,7 @@ test('lua_load, binary mode', function (t) {
linit.luaL_openlibs(L);
- lapi.lua_load(L, null, bc, "test-math", "binary");
+ lapi.lua_load(L, null, bc, "test-load", "binary");
lapi.lua_call(L, 0, -1);
@@ -47,17 +47,17 @@ test('lua_load, text mode', function (t) {
t.plan(2);
- // t.doesNotThrow(function () {
+ t.doesNotThrow(function () {
L = lauxlib.luaL_newstate();
linit.luaL_openlibs(L);
- lapi.lua_load(L, null, luaCode, "test-math", "text");
+ lapi.lua_load(L, null, luaCode, "test-load", "text");
lapi.lua_call(L, 0, -1);
- // }, "JS Lua program ran without error");
+ }, "JS Lua program ran without error");
t.strictEqual(
lapi.lua_tostring(L, -1),