From e515356aaa8366b25fe68acc0f33c1482c85b7cb Mon Sep 17 00:00:00 2001 From: Marie <marie.lefort@gmail.com> Date: Fri, 23 Mar 2018 01:51:19 +0100 Subject: [PATCH] refacto tests --- main.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.test.js b/main.test.js index c14aae6..566bffc 100644 --- a/main.test.js +++ b/main.test.js @@ -5,9 +5,11 @@ const app = require("./main"); const expected = { c:0.0488, dt:86400, ud0:1000, sigPeriod:432000 } -test('app convert raw data to expected', () => { +describe('app convert raw data to expected', () => { const resultat = app(data); for(let key in expected){ - expect(resultat[key]).toBe(expected[key]); + it(`app parse ${key}`, () => { + expect(resultat[key]).toBe(expected[key]); + }); } }); -- GitLab