aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-02 09:49:04 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-02 09:49:04 +0200
commitd35f4e1dcec1494483a9257b7a2cacb172047c1f (patch)
tree3c657d446b9d7f7744e6ac2865d46ea206ca5438
parentbacc22f7cb26d701c4dbf8609b8e01a030ea6f34 (diff)
downloadfengari-d35f4e1dcec1494483a9257b7a2cacb172047c1f.tar.gz
fengari-d35f4e1dcec1494483a9257b7a2cacb172047c1f.tar.bz2
fengari-d35f4e1dcec1494483a9257b7a2cacb172047c1f.zip
Fixed os.time test to compare output with a Date instead of a constant
-rw-r--r--tests/loslib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/loslib.js b/tests/loslib.js
index 36a22e2..8555bc4 100644
--- a/tests/loslib.js
+++ b/tests/loslib.js
@@ -61,7 +61,7 @@ test('os.time (with format)', function (t) {
t.strictEqual(
lua.lua_tointeger(L, -1),
- 1423393200,
+ new Date(2015, 1, 8, 12, 0, 0, 0).getTime() / 1000,
"Correct element(s) on the stack"
);