From dd1dced4c12ae254605d1cc15c3ed9e63d93f5c6 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 26 Apr 2017 10:45:57 -0400 Subject: [PATCH] test: remove eslint comments This commit refactors test-whatwg-url-tojson.js to remove ESLint comments. PR-URL: https://github.com/nodejs/node/pull/12669 Reviewed-By: Refael Ackermann Reviewed-By: Alexey Orlenko Reviewed-By: Evan Lucas Reviewed-By: Gibson Fahnestock Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- test/parallel/test-whatwg-url-tojson.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-whatwg-url-tojson.js b/test/parallel/test-whatwg-url-tojson.js index 35af93261c79a5..20f2d183f2167f 100644 --- a/test/parallel/test-whatwg-url-tojson.js +++ b/test/parallel/test-whatwg-url-tojson.js @@ -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/"'); +});