diff options
author | Filip Skokan <panva.ip@gmail.com> | 2023-02-25 19:19:08 +0100 |
---|---|---|
committer | Beth Griggs <bethanyngriggs@gmail.com> | 2023-03-23 20:03:28 +0000 |
commit | cf76d0790d05f057a7b495aec627359e4efafcd1 (patch) | |
tree | ad229995efc3eb175cd14b7f6c94fa6638ee09cd | |
parent | 0d1485b92423d9b4d2bce151aaca4f2995fa1b90 (diff) | |
download | node-new-cf76d0790d05f057a7b495aec627359e4efafcd1.tar.gz |
test: fix WPT title when no META title is present
PR-URL: https://github.com/nodejs/node/pull/46804
Backport-PR-URL: https://github.com/nodejs/node/pull/46768
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
-rw-r--r-- | test/common/wpt.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common/wpt.js b/test/common/wpt.js index fdaacea072..91f10e569d 100644 --- a/test/common/wpt.js +++ b/test/common/wpt.js @@ -693,7 +693,7 @@ class WPTRunner { getTestTitle(filename) { const spec = this.specMap.get(filename); - return spec.meta?.title || filename; + return spec.meta?.title || filename.split('.')[0]; } // Map WPT test status to strings |