Skip to content

Commit e5f13e1

Browse files
committed
Added test
1 parent b6b3fc2 commit e5f13e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/plugin/duration.test.js

+3
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ describe('Creating', () => {
6767
ms: -1
6868
}).toISOString()).toBe('-PT0.001S')
6969
})
70+
it('convert to milliseconds', () => {
71+
expect(+dayjs.duration(100)).toBe(100)
72+
})
7073
})
7174

7275
describe('Parse ISO string', () => {

0 commit comments

Comments
 (0)