From 9deb32fc9c65524b33e6ed485772543f95b4db8b Mon Sep 17 00:00:00 2001 From: thanhnguyennguyen Date: Tue, 21 Aug 2018 12:20:05 +0700 Subject: [PATCH] Dockerfile: run test when building docker images --- Dockerfile | 1 + topics/anagrams/index.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4de26c9..bceeacb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,7 @@ COPY README.md /app/ RUN npm install -g npm@6.4.0 RUN npm install -g jest +RUN npm run coverage RUN chmod +x init.sh RUN sed -i -e 's/\r$//' init.sh diff --git a/topics/anagrams/index.js b/topics/anagrams/index.js index d3b4554..e7be5f0 100644 --- a/topics/anagrams/index.js +++ b/topics/anagrams/index.js @@ -8,7 +8,6 @@ const buildCharacterMap = (str) => { for (let character of str) { characterMap[character] = ++characterMap[character] || 1; } - console.log(characterMap); return characterMap; }