Skip to content
Snippets Groups Projects
Commit e515356a authored by Marie's avatar Marie
Browse files

refacto tests

parent 4b30d2dc
Branches
No related tags found
No related merge requests found
......@@ -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){
it(`app parse ${key}`, () => {
expect(resultat[key]).toBe(expected[key]);
});
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment