From 50ddeb1c501299f8381d5f162fd60ad917857b5e Mon Sep 17 00:00:00 2001 From: Kamthorn Krairaksa Date: Fri, 14 Sep 2018 19:07:29 +0700 Subject: [PATCH] update test script --- test/dateDiffSpec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/dateDiffSpec.js b/test/dateDiffSpec.js index e5856f2..1c47738 100644 --- a/test/dateDiffSpec.js +++ b/test/dateDiffSpec.js @@ -104,5 +104,8 @@ describe('DateDiff', function() { it('will return 1.2', function() { expect(Date.diff(new Date(2016, 2, 1), new Date(2015, 0, 1)).years()).toBe(1.2); }); + it('will return 0.5', function() { + expect(Date.diff(new Date(2016, 7, 1), new Date(2015, 12, 30)).years()).toBe(0.5); + }); }); });