From 79925cebb2752e6faef35bdc51af285a37f48dca Mon Sep 17 00:00:00 2001 From: Joshua Ohlman Date: Sat, 4 Jul 2015 08:08:46 -0500 Subject: [PATCH] Add test to ensure invalid moments isSame returns false --- src/test/moment/is_same.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/moment/is_same.js b/src/test/moment/is_same.js index 31794ce78..150194ee2 100644 --- a/src/test/moment/is_same.js +++ b/src/test/moment/is_same.js @@ -145,3 +145,7 @@ test('is same with utc offset moments', function (assert) { assert.ok(moment.parseZone('2013-02-01T-05:00').isSame(moment.parseZone('2013-02-01T-06:30'), 'year'), 'zoned vs (differently) zoned moment'); }); + +test('is same with invalid moments', function (assert) { + assert.equal(moment.invalid().isSame(moment.invalid()), false, 'invalid moments are not considered equal'); +}); -- 2.47.3