From 39ca3a54682f023afae87e2e307fd18fdde20b57 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 2 Apr 2018 13:44:50 +1000 Subject: tests/load.js: assert loadfile result for correct error messages --- tests/load.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/load.js b/tests/load.js index 8555014..0eb0ccf 100644 --- a/tests/load.js +++ b/tests/load.js @@ -110,7 +110,7 @@ test('luaL_loadbuffer', function (t) { // TODO: test stdin test('loadfile', function (t) { let luaCode = ` - local f = loadfile("tests/loadfile-test.lua") + local f = assert(loadfile("tests/loadfile-test.lua")) return f() `, L; @@ -142,7 +142,7 @@ test('loadfile', function (t) { test('loadfile (binary)', function (t) { let luaCode = ` - local f = loadfile("tests/loadfile-test.bc") + local f = assert(loadfile("tests/loadfile-test.bc")) return f() `, L; -- cgit v1.2.3-70-g09d2