数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
378 B

3 years ago
import { describe, expect, it } from '@jest/globals'
import getBytesRemaining from './getBytesRemaining.js'
describe('getBytesRemaining', () => {
it('should calculate the bytes remaining given a fileProgress object', () => {
const fileProgress = {
bytesUploaded: 1024,
bytesTotal: 3096,
}
expect(getBytesRemaining(fileProgress)).toEqual(2072)
})
})