Skip to content

Commit

Permalink
test: avoid real hash using
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Aug 12, 2024
1 parent 001cab1 commit 9365482
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 190 deletions.
6 changes: 5 additions & 1 deletion test/StatsTestCases.basictest.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ describe("StatsTestCases", () => {
.replace(/(\w)\\(\w)/g, "$1/$2")
.replace(/, additional resolving: X ms/g, "")
.replace(/Unexpected identifier '.+?'/g, "Unexpected identifier")
.replace(/[.0-9]+(\s?(bytes|KiB))/g, "X$1");
.replace(/[.0-9]+(\s?(bytes|KiB))/g, "X$1")
.replace(
/ms\s\([0-9a-f]{6,32}\)|(?![0-9]+-)[0-9a-f-]{6,32}\./g,
match => `${match.replace(/[0-9a-f]/g, "X")}`
);
expect(actual).toMatchSnapshot();
if (testConfig.validate) testConfig.validate(stats, stderr.toString());
done();
Expand Down
Loading

0 comments on commit 9365482

Please sign in to comment.