Skip to content

Commit 760283e

Browse files
authored
testrunner: fix default environment name (#2870)
1 parent 0c80c22 commit 760283e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/testrunner/Test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,14 @@ class Suite {
101101
constructor(parentSuite, name, location) {
102102
this._parentSuite = parentSuite;
103103
this._name = name;
104-
this._fullName = (parentSuite ? parentSuite.fullName() + ' ' + name : name).trim();
104+
const fullName = (parentSuite ? parentSuite.fullName() + ' ' + name : name).trim();
105+
this._fullName = fullName;
105106
this._location = location;
106107
this._skipped = false;
107108
this._expectation = TestExpectation.Ok;
108109

109110
this._defaultEnvironment = {
110-
name() { return this._fullName; },
111+
name() { return fullName; },
111112
};
112113

113114
this._environments = [this._defaultEnvironment];

0 commit comments

Comments
 (0)