diff --git a/test/plugin/duration.test.js b/test/plugin/duration.test.js index 2e804691c..8a7e0e6cd 100644 --- a/test/plugin/duration.test.js +++ b/test/plugin/duration.test.js @@ -67,6 +67,9 @@ describe('Creating', () => { ms: -1 }).toISOString()).toBe('-PT0.001S') }) + it('convert to milliseconds', () => { + expect(+dayjs.duration(100)).toBe(100) + }) }) describe('Parse ISO string', () => {