From c0a592ec1f7cebcbc7afd3b00641b709d2350fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 16 Nov 2019 15:57:56 +0100 Subject: [PATCH] Test only instance of PYSON DateTime with invalid start Both instances tested can have different values as they are instantiate at different time. issue8829 --- tests/sao.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/sao.js b/tests/sao.js index 40410ab7b1..73d69dc0b1 100644 --- a/tests/sao.js +++ b/tests/sao.js @@ -951,9 +951,8 @@ undefined, undefined, undefined, undefined, new Sao.PYSON.Eval('foo'))); - QUnit.strictEqual(new Sao.PYSON.Decoder( - {'foo': 'bar'}).decode(eval_).valueOf(), - Sao.DateTime().valueOf()); + QUnit.ok(new Sao.PYSON.Decoder( + {'foo': 'bar'}).decode(eval_).isDateTime); }); QUnit.test('PYSON TimeDelta', function() {