From 37475217bf05fa44eba1551d318e6a5f6d088d7a Mon Sep 17 00:00:00 2001 From: Clemens Date: Thu, 16 Jun 2016 13:25:58 +0200 Subject: added tests for ui --- web/src/js/__tests__/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/src/js/__tests__/utils.js') diff --git a/web/src/js/__tests__/utils.js b/web/src/js/__tests__/utils.js index eda740a1..b216d7d4 100644 --- a/web/src/js/__tests__/utils.js +++ b/web/src/js/__tests__/utils.js @@ -1,9 +1,9 @@ -jest.unmock("../utils.js"); +jest.unmock("../utils"); -import {formatSize} from "../utils.js" +import {formatSize} from "../utils" -describe("utils", function () { - it("formatSize", function(){ +describe("utils", () => { + it("formatSize", () => { expect(formatSize(1024)).toEqual("1kb"); expect(formatSize(0)).toEqual("0"); expect(formatSize(10)).toEqual("10b"); -- cgit v1.2.3