Skip to content

Commit 9f57d6e

Browse files
committed
Replace erroneous use of this in test callback
The surrounding function is an arrow function, meaning this refers to the outer this, which does not have a skip method. This fixes 2/4 of existing test failures: - should serialize: two lines string - should serialize: two lines display string
1 parent 4315fac commit 9f57d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/httpwg-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function makeSerializeTest(test) {
269269

270270
if (test.can_fail) {
271271
// Optional failure
272-
this.skip('can_fail was true');
272+
t.skip('can_fail was true');
273273
} else {
274274
throw e;
275275
}

0 commit comments

Comments
 (0)