mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-29 13:00:18 +00:00
12 lines
429 B
JavaScript
12 lines
429 B
JavaScript
import { describe, expect, it } from '@jest/globals'
|
|
import formatSeconds from './formatSeconds.js'
|
|
|
|
describe('formatSeconds', () => {
|
|
it('should return a value of \'0:43\' when an argument of 43 seconds is supplied', () => {
|
|
expect(formatSeconds(43)).toEqual('0:43')
|
|
})
|
|
|
|
it('should return a value of \'1:43\' when an argument of 103 seconds is supplied', () => {
|
|
expect(formatSeconds(103)).toEqual('1:43')
|
|
})
|
|
})
|