UNPKG

326 BJavaScriptView Raw
1const getBytesRemaining = require('./getBytesRemaining')
2
3describe('getBytesRemaining', () => {
4 it('should calculate the bytes remaining given a fileProgress object', () => {
5 const fileProgress = {
6 bytesUploaded: 1024,
7 bytesTotal: 3096
8 }
9 expect(getBytesRemaining(fileProgress)).toEqual(2072)
10 })
11})