From 70cde8ccaa2fd0a19645d003109a95ec4ffc8af1 Mon Sep 17 00:00:00 2001 From: Jason Date: Wed, 2 Mar 2016 23:04:13 +0800 Subject: [web] Fix eslint warnings about tests --- web/src/js/tests/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/src/js') diff --git a/web/src/js/tests/utils.js b/web/src/js/tests/utils.js index 1b6de264..acbadc92 100644 --- a/web/src/js/tests/utils.js +++ b/web/src/js/tests/utils.js @@ -1,8 +1,9 @@ jest.dontMock("jquery"); jest.dontMock("../utils"); +import {formatSize} from "../utils.js" + describe("utils", function () { - import {formatSize} from "../utils.js" it("formatSize", function(){ expect(formatSize(1024)).toEqual("1kb"); expect(formatSize(0)).toEqual("0"); -- cgit v1.2.3