diff options
Diffstat (limited to 'web/src/js/__tests__/utils.js')
-rw-r--r-- | web/src/js/__tests__/utils.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/web/src/js/__tests__/utils.js b/web/src/js/__tests__/utils.js deleted file mode 100644 index b216d7d4..00000000 --- a/web/src/js/__tests__/utils.js +++ /dev/null @@ -1,15 +0,0 @@ -jest.unmock("../utils"); - -import {formatSize} from "../utils" - -describe("utils", () => { - it("formatSize", () => { - expect(formatSize(1024)).toEqual("1kb"); - expect(formatSize(0)).toEqual("0"); - expect(formatSize(10)).toEqual("10b"); - expect(formatSize(1025)).toEqual("1.0kb"); - expect(formatSize(1024*1024)).toEqual("1mb"); - expect(formatSize(1024*1024+1)).toEqual("1.0mb"); - }); -}); - |