changeset 10e8951665f8 in sao:5.4 details: https://hg.tryton.org/sao?cmd=changeset;node=10e8951665f8 description: Test only instance of PYSON DateTime with invalid start
Both instances tested can have different values as they are instantiate at different time. issue8829 (grafted from 1e57471b01af497d39179006dd4fbe34bfb88037) diffstat: tests/sao.js | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diffs (15 lines): diff -r 9df3b87350a7 -r 10e8951665f8 tests/sao.js --- a/tests/sao.js Sat Nov 16 12:51:50 2019 +0100 +++ b/tests/sao.js Sat Nov 16 15:57:56 2019 +0100 @@ -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() {