Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
test-50-fs-runtime-layer-2: remove unnecessary assertion on hint
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed May 7, 2021
1 parent ea7d72b commit 551d07d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions test/test-50-fs-runtime-layer-2/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,9 @@ right = right.split('\n');
// right may have less lines, premature exit,
// less trusted, so using left.length here
for (let i = 0; i < left.length; i += 1) {
if (/is out of range/.test(right[i])) {
let rval = right[i].replace('>= 0 && ', '');
if (left[i] === rval) {
right[i] = rval;
} else {
rval = right[i].replace(/ && <= [0-9]/, '');
if (left[i] === rval) {
right[i] = rval;
}
}
if (/is out of range/.test(left[i]) && /is out of range/.test(right[i])) {
left[i] = left[i].replace(/ It must be .*\. /, ' ');
right[i] = right[i].replace(/ It must be .*\. /, ' ');
}
assert.strictEqual(left[i], right[i]);
}
Expand Down

0 comments on commit 551d07d

Please sign in to comment.