Skip to content

Commit

Permalink
Revert "test: remove eslint comments"
Browse files Browse the repository at this point in the history
This reverts commit 8d1f15b
to preserve the original WPT code.

PR-URL: #12743
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
joyeecheung committed May 2, 2017
1 parent 10ccf56 commit 9f7b549
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/parallel/test-whatwg-url-tojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ 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/"');
});
const a = new URL("https://example.com/")
assert_equals(JSON.stringify(a), "\"https://example.com/\"")
})
/* eslint-enable */

0 comments on commit 9f7b549

Please sign in to comment.