diff options
Diffstat (limited to 'web/src/js/tests/utils.js')
-rw-r--r-- | web/src/js/tests/utils.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/web/src/js/tests/utils.js b/web/src/js/tests/utils.js deleted file mode 100644 index acbadc92..00000000 --- a/web/src/js/tests/utils.js +++ /dev/null @@ -1,16 +0,0 @@ -jest.dontMock("jquery"); -jest.dontMock("../utils"); - -import {formatSize} from "../utils.js" - -describe("utils", function () { - it("formatSize", function(){ - 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"); - }); -}); - |