From 5f71de94ef1f7b7484d01bb478fd7f6e323c8027 Mon Sep 17 00:00:00 2001 From: Sebastian Schaffernak Date: Thu, 7 Nov 2019 12:33:02 +0100 Subject: [PATCH] test: Added some edge cases, that should work correctly --- test/plugin/weekOfYear.test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/plugin/weekOfYear.test.js b/test/plugin/weekOfYear.test.js index a0c446a86..2477f26cd 100644 --- a/test/plugin/weekOfYear.test.js +++ b/test/plugin/weekOfYear.test.js @@ -40,6 +40,8 @@ it('Week of year with locale', () => { // Edges expect(dayjs('2018-12-30').week()).toBe(moment('2018-12-30').week()) expect(dayjs('2019-12-29').week()).toBe(moment('2019-12-29').week()) + expect(dayjs('2016-01-01').week()).toBe(moment('2016-01-01').week()) + expect(dayjs('2016-01-04').week()).toBe(moment('2016-01-04').week()) }) it('Format w ww wo', () => {