From d35f4e1dcec1494483a9257b7a2cacb172047c1f Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Tue, 2 May 2017 09:49:04 +0200 Subject: Fixed os.time test to compare output with a Date instead of a constant --- tests/loslib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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" ); -- cgit v1.2.3-54-g00ecf