Upstream avoidwork/filesize.js state of the touched files before cc6ad645b3
This commit is contained in:
1 parent
d0bb0d64af
commit
3da8421ddf
2 files changed
+10
-20
No files matched your search
@@ -268,16 +268,6 @@ describe("filesize", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("should keep the singular fullform name for negative one-magnitude values", () => {
|
||||
assert.strictEqual(filesize(-1, { fullform: true }), "-1 byte");
|
||||
assert.strictEqual(filesize(-0.125, { bits: true, fullform: true }), "-1 bit");
|
||||
});
|
||||
|
||||
it("should keep the plural fullform name for negative values", () => {
|
||||
assert.strictEqual(filesize(-2, { fullform: true }), "-2 bytes");
|
||||
assert.strictEqual(filesize(-0.25, { bits: true, fullform: true }), "-2 bits");
|
||||
});
|
||||
|
||||
it("should handle bits fullform singular", () => {
|
||||
assert.strictEqual(filesize(0.125, { bits: true, fullform: true }), "1 bit");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user