Skip to content

Commit

Permalink
Update the build config actions versions
Browse files Browse the repository at this point in the history
- add logs
  • Loading branch information
ClaudiaGivan committed May 27, 2024
1 parent 74ffc45 commit d436d8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/graphs/cfd/CFDRenderer.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import CFDRenderer from '../../../src/graphs/cfd/CFDRenderer.js';
import cfdGraphOutput from '../../testData/CFDGraphExpectedOutput.js';
import metricsOutput from '../../testData/CFDRendererExpectedOutput.js';
import {diff} from 'jest-diff';

describe('CFDRenderer', () => {
let cfdRenderer;
Expand All @@ -17,6 +16,7 @@ describe('CFDRenderer', () => {
//Act
const metrics = cfdRenderer.computeMetrics(date,cumulativeCount);
//Assert
expect(JSON.stringify(metrics, null, 2)).toEqual(JSON.stringify(metricsOutput, null, 2));
const normalizeJSON = (obj) => JSON.stringify(obj, Object.keys(obj).sort());
expect(normalizeJSON(metrics)).toEqual(normalizeJSON(metricsOutput));
});
});

0 comments on commit d436d8d

Please sign in to comment.