Skip to content

Commit 98f3c0f

Browse files
cjihrigevanlucas
authored andcommitted
test: remove eslint comments
This commit refactors test-whatwg-url-tojson.js to remove ESLint comments. PR-URL: #12669 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 07e9393 commit 98f3c0f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/parallel/test-whatwg-url-tojson.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ const common = require('../common');
44
const URL = require('url').URL;
55
const { test, assert_equals } = common.WPT;
66

7-
/* eslint-disable */
87
/* WPT Refs:
98
https://github.com/w3c/web-platform-tests/blob/02585db/url/url-tojson.html
109
License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html
1110
*/
1211
test(() => {
13-
const a = new URL("https://example.com/")
14-
assert_equals(JSON.stringify(a), "\"https://example.com/\"")
15-
})
16-
/* eslint-enable */
12+
const a = new URL('https://example.com/');
13+
assert_equals(JSON.stringify(a), '"https://example.com/"');
14+
});

0 commit comments

Comments
 (0)