Skip to content

Commit

Permalink
test: remove eslint comments
Browse files Browse the repository at this point in the history
This commit refactors test-whatwg-url-tojson.js to remove
ESLint comments.

PR-URL: nodejs/node#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]>
  • Loading branch information
cjihrig committed Apr 28, 2017
1 parent b16869c commit 8d1f15b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/parallel/test-whatwg-url-tojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ const common = require('../common');
const URL = require('url').URL;
const { test, assert_equals } = common.WPT;

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

0 comments on commit 8d1f15b

Please sign in to comment.