Revert "test: remove eslint comments"
This reverts commit 8d1f15bf992a70eab3107986a4fc71afc16a9c99 to preserve the original WPT code. PR-URL: https://github.com/nodejs/node/pull/12743 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
10ccf56f89
commit
9f7b54945e
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user