Skip to content

Commit

Permalink
Upload: Make metrics tests compatible with jest@26
Browse files Browse the repository at this point in the history
  • Loading branch information
gu-stav committed Jul 27, 2022
1 parent 2d6afbf commit 5ca0538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/upload/server/services/__tests__/metrics.js
Expand Up @@ -96,9 +96,9 @@ describe('metrics', () => {
expect(results).toMatchObject({
assetNumber,
folderNumber,
averageDepth: expect.closeTo(averageDepth, 3),
averageDepth: expect.toBeCloseTo(averageDepth, 3),
maxDepth,
averageDeviationDepth: expect.closeTo(averageDeviationDepth, 3),
averageDeviationDepth: expect.toBeCloseTo(averageDeviationDepth, 3),
});
});
});
Expand Down

0 comments on commit 5ca0538

Please sign in to comment.