From 1c48154f946896ab0df547874abf0ad8f1530d93 Mon Sep 17 00:00:00 2001 From: Bahman Binary Date: Wed, 16 Oct 2024 17:06:27 +0330 Subject: [PATCH] Fix test failure --- test/plugin.diff.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plugin.diff.test.js b/test/plugin.diff.test.js index f5b9447..c5dee06 100644 --- a/test/plugin.diff.test.js +++ b/test/plugin.diff.test.js @@ -18,7 +18,7 @@ describe('diff two dates', () => { const b = dayjs('1397/09/10', { jalali: true }) it('diff(float)', () => { - expect(a.diff(b, 'month', true)).toEqual(-3.3) + expect(Math.round(a.diff(b, 'month', true) * 10) / 10).toEqual(-3.3); }) it('diff(month)', () => {