aboutsummaryrefslogtreecommitdiff
path: root/tests/ldblib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-10 02:22:47 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-10 02:36:36 +1100
commita946df6302452323706f715a28029c63f766d1db (patch)
tree971f4f82ecb648dc08a96e1a1a25bc7ef1598a0c /tests/ldblib.js
parentfa8ba4f04623f66962c9fa2a502dd8d51a3eefa6 (diff)
downloadfengari-a946df6302452323706f715a28029c63f766d1db.tar.gz
fengari-a946df6302452323706f715a28029c63f766d1db.tar.bz2
fengari-a946df6302452323706f715a28029c63f766d1db.zip
tests/: Fix linter complaints
Diffstat (limited to 'tests/ldblib.js')
-rw-r--r--tests/ldblib.js33
1 files changed, 11 insertions, 22 deletions
diff --git a/tests/ldblib.js b/tests/ldblib.js
index 7f39c09..209e60e 100644
--- a/tests/ldblib.js
+++ b/tests/ldblib.js
@@ -23,7 +23,7 @@ test('debug.sethook', function (t) {
return result
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -47,7 +47,6 @@ test('debug.sethook', function (t) {
"return count line count line count line call count line return count line count line call count line return count line count line call count line return count line ",
"Correct element(s) on the stack"
);
-
});
@@ -67,7 +66,7 @@ test('debug.gethook', function (t) {
return debug.gethook()
`, L;
-
+
t.plan(5);
t.doesNotThrow(function () {
@@ -103,7 +102,6 @@ test('debug.gethook', function (t) {
1,
"Correct element(s) on the stack"
);
-
});
@@ -127,7 +125,7 @@ test('debug.getlocal', function (t) {
return result
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -151,7 +149,6 @@ test('debug.getlocal', function (t) {
"alocal alocalanother anotherinfunction infunctionanotherin anotherin",
"Correct element(s) on the stack"
);
-
});
test('debug.setlocal', function (t) {
@@ -175,7 +172,7 @@ test('debug.setlocal', function (t) {
return alocal, another, a, b
`, L;
-
+
t.plan(6);
t.doesNotThrow(function () {
@@ -217,7 +214,6 @@ test('debug.setlocal', function (t) {
4,
"Correct element(s) on the stack"
);
-
});
test('debug.upvalueid', function (t) {
@@ -230,7 +226,7 @@ test('debug.upvalueid', function (t) {
return debug.upvalueid(l, 1)
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -253,7 +249,6 @@ test('debug.upvalueid', function (t) {
lua.lua_touserdata(L, -1),
"Correct element(s) on the stack"
);
-
});
@@ -274,7 +269,7 @@ test('debug.upvaluejoin', function (t) {
return l1()
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -298,7 +293,6 @@ test('debug.upvaluejoin', function (t) {
"upvalue2",
"Correct element(s) on the stack"
);
-
});
@@ -319,7 +313,7 @@ test('debug.traceback (with a global)', function (t) {
return trace
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -340,8 +334,7 @@ test('debug.traceback (with a global)', function (t) {
}, "Lua program ran without error");
t.strictEqual(
- lua.lua_tojsstring(L, -1),
-`stack traceback:
+ lua.lua_tojsstring(L, -1), `stack traceback:
\t[string "traceback-test"]:9: in function 'rec'
\t[string "traceback-test"]:7: in function 'rec'
\t[string "traceback-test"]:7: in function 'rec'
@@ -356,7 +349,6 @@ test('debug.traceback (with a global)', function (t) {
\t[string "traceback-test"]:13: in main chunk`,
"Correct element(s) on the stack"
);
-
});
@@ -378,7 +370,7 @@ test('debug.traceback (with a upvalue)', function (t) {
return trace
`, L;
-
+
t.plan(3);
t.doesNotThrow(function () {
@@ -399,8 +391,7 @@ test('debug.traceback (with a upvalue)', function (t) {
}, "Lua program ran without error");
t.strictEqual(
- lua.lua_tojsstring(L, -1),
-`stack traceback:
+ lua.lua_tojsstring(L, -1), `stack traceback:
\t[string "traceback-test"]:10: in upvalue 'rec'
\t[string "traceback-test"]:8: in upvalue 'rec'
\t[string "traceback-test"]:8: in upvalue 'rec'
@@ -415,7 +406,6 @@ test('debug.traceback (with a upvalue)', function (t) {
\t[string "traceback-test"]:14: in main chunk`,
"Correct element(s) on the stack"
);
-
});
test('debug.getinfo', function (t) {
@@ -432,7 +422,7 @@ test('debug.getinfo', function (t) {
return d1.short_src, d1.nups, d1.what, d1.nparams,
d2.short_src, d2.nups, d2.what, d2.nparams
`, L;
-
+
t.plan(10);
t.doesNotThrow(function () {
@@ -499,5 +489,4 @@ test('debug.getinfo', function (t) {
0,
"Correct element(s) on the stack"
);
-
});