From 119f624f44d45cce1318daef1a97644d2fce458f Mon Sep 17 00:00:00 2001 From: eslopfer Date: Mon, 23 Jan 2023 09:11:56 +0000 Subject: [PATCH] refactor(bloody-sunday): replace bloody for sunny --- js/tests/bloody-sunday_test.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/js/tests/bloody-sunday_test.js b/js/tests/bloody-sunday_test.js index 9e3dadbd..34588f9e 100644 --- a/js/tests/bloody-sunday_test.js +++ b/js/tests/bloody-sunday_test.js @@ -1,18 +1,18 @@ export const tests = [] const t = (f) => tests.push(f) -t(() => bloodySunday(new Date('0001-01-01')) === 'Monday') -t(() => bloodySunday(new Date('0001-01-02')) === 'Tuesday') -t(() => bloodySunday(new Date('0001-01-03')) === 'Wednesday') -t(() => bloodySunday(new Date('0001-01-04')) === 'Thursday') -t(() => bloodySunday(new Date('0001-01-05')) === 'Friday') -t(() => bloodySunday(new Date('0001-01-06')) === 'Saturday') -t(() => bloodySunday(new Date('0001-01-07')) === 'Monday') +t(() => sunnySunday(new Date('0001-01-01')) === 'Monday') +t(() => sunnySunday(new Date('0001-01-02')) === 'Tuesday') +t(() => sunnySunday(new Date('0001-01-03')) === 'Wednesday') +t(() => sunnySunday(new Date('0001-01-04')) === 'Thursday') +t(() => sunnySunday(new Date('0001-01-05')) === 'Friday') +t(() => sunnySunday(new Date('0001-01-06')) === 'Saturday') +t(() => sunnySunday(new Date('0001-01-07')) === 'Monday') -t(() => bloodySunday(new Date('0001-12-01')) === 'Friday') -t(() => bloodySunday(new Date('1664-08-09')) === 'Saturday') +t(() => sunnySunday(new Date('0001-12-01')) === 'Friday') +t(() => sunnySunday(new Date('1664-08-09')) === 'Saturday') -t(() => bloodySunday(new Date('2020-01-01')) === 'Monday') -t(() => bloodySunday(new Date('2048-12-08')) === 'Thursday') +t(() => sunnySunday(new Date('2020-01-01')) === 'Monday') +t(() => sunnySunday(new Date('2048-12-08')) === 'Thursday') Object.freeze(tests)