From 9f7b54945e64a929d1709a82b59bbd87d144ee5c Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Sat, 29 Apr 2017 23:34:40 +0800 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: Daijiro Wachi Reviewed-By: James M Snell --- test/parallel/test-whatwg-url-tojson.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-whatwg-url-tojson.js b/test/parallel/test-whatwg-url-tojson.js index 20f2d183f2167f..35af93261c79a5 100644 --- a/test/parallel/test-whatwg-url-tojson.js +++ b/test/parallel/test-whatwg-url-tojson.js @@ -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 */