test: fix WPT title when no META title is present

PR-URL: https://github.com/nodejs/node/pull/46804
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
Filip Skokan authored and Michaël Zasso committed 2023-03-14 07:53:33 +01:00
1 parent 4b91420307
commit e5fa7a139a
1 file changed
+1 -1
+1 -1
View File
@@ -721,7 +721,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