diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-06-16 03:06:08 -0700 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-06-16 03:06:08 -0700 |
commit | 1fc2db85fa339f9b134d45c15d2ad4cf3d681070 (patch) | |
tree | 4c4cccaf6c2d06949e88ea5dca1d254dde093e45 /web/src/js/tests/utils.js | |
parent | 848e7c6c50ec928f029382f141e417a22f7d2553 (diff) | |
download | mitmproxy-1fc2db85fa339f9b134d45c15d2ad4cf3d681070.tar.gz mitmproxy-1fc2db85fa339f9b134d45c15d2ad4cf3d681070.tar.bz2 mitmproxy-1fc2db85fa339f9b134d45c15d2ad4cf3d681070.zip |
web: fix tests
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"); - }); -}); - |