Skip to content

Commit

Permalink
options fix
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Sep 22, 2024
1 parent d628916 commit 5b935fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/wpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class WPTTestRunner {
* @param {number} stringLength Length of the test results string
*/
checkCommentSizeLimit(stringLength) {
let commentSize = fs.statSync(this.testResultsFile, throwIfNoEntry=false) ?
fs.statSync(this.testResultsFile, throwIfNoEntry=false)?.size : 0;
let commentSize = fs.statSync('comment.md', { throwIfNoEntry: false }) ?
fs.statSync('comment.md', {throwIfNoEntry: false})?.size : 0;

if (commentSize + stringLength > 64500) {
this.commentSizeLimitHit = true;
Expand Down

0 comments on commit 5b935fb

Please sign in to comment.