Skip to content

Commit 21d3c2f

Browse files
committed
Revert "Updating tests"
This reverts commit 5b692a1.
1 parent 5b692a1 commit 21d3c2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/unit/filesize.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ describe('filesize', () => {
243243
describe('filesize() with number input', () => {
244244
it('should handle integer numbers', () => {
245245
assert.strictEqual(filesize(1024), '1.02 kB');
246+
assert.strictEqual(filesize(0), '0 B');
246247
assert.strictEqual(filesize(-1024), '-1.02 kB');
247248
});
248249

@@ -375,6 +376,7 @@ describe('filesize', () => {
375376
});
376377

377378
it('should work with BigInt input and different options', () => {
379+
assert.strictEqual(filesize(BigInt(1024), { standard: 'jedec' }), '1 KB');
378380
assert.strictEqual(filesize(BigInt(1000), { bits: true }), '8 kbit');
379381

380382
const objectResult = filesize(BigInt(1024), { output: 'object' });

0 commit comments

Comments
 (0)