summaryrefslogtreecommitdiff
path: root/tests/loslib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-04-26 17:55:37 +1000
committerdaurnimator <quae@daurnimator.com>2017-04-26 18:06:57 +1000
commitb688ef577a10e8b6f2cf948faaa8d1af70c7949c (patch)
tree0ff07d75f65442b92d8a95259b9ab6845e66b27a /tests/loslib.js
parent53bd1fcc4b90f24427064419354ad07c552a93d5 (diff)
downloadfengari-b688ef577a10e8b6f2cf948faaa8d1af70c7949c.tar.gz
fengari-b688ef577a10e8b6f2cf948faaa8d1af70c7949c.tar.bz2
fengari-b688ef577a10e8b6f2cf948faaa8d1af70c7949c.zip
Export lapi.js functions from lua.js
Diffstat (limited to 'tests/loslib.js')
-rw-r--r--tests/loslib.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/loslib.js b/tests/loslib.js
index 1bb217f..00ee019 100644
--- a/tests/loslib.js
+++ b/tests/loslib.js
@@ -2,7 +2,6 @@
const test = require('tape');
-const lapi = require("../src/lapi.js");
const lauxlib = require("../src/lauxlib.js");
const lua = require('../src/lua.js');
const linit = require('../src/linit.js');
@@ -26,12 +25,12 @@ test('os.time', function (t) {
t.doesNotThrow(function () {
- lapi.lua_call(L, 0, -1);
+ lua.lua_call(L, 0, -1);
}, "Lua program ran without error");
t.ok(
- lapi.lua_isinteger(L, -1),
+ lua.lua_isinteger(L, -1),
"Correct element(s) on the stack"
);