mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-29 21:13:21 +00:00
12 lines
378 B
JavaScript
12 lines
378 B
JavaScript
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)
|
|
})
|
|
})
|