From 4d8910e7d2f0a0402ab028324facc1582d8403e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Thu, 6 Oct 2022 17:48:27 +0200 Subject: [PATCH] Update fixtures --- .../async-do-expressions/inner-comments/output.js | 6 +----- .../comments/async-class-method-comment/output.js | 7 +------ .../output.js | 13 +------------ .../async-generator-class-method-comment/output.js | 9 +-------- .../output.js | 7 +------ .../import-assertion-inner-comment/output.js | 4 +--- .../comments/yield-star-inner-comment/output.js | 4 +--- .../arrow-single-optional-param/output.js | 2 +- .../flow-comments/arrow-single-param-type/output.js | 2 +- 9 files changed, 9 insertions(+), 45 deletions(-) diff --git a/packages/babel-generator/test/fixtures/async-do-expressions/inner-comments/output.js b/packages/babel-generator/test/fixtures/async-do-expressions/inner-comments/output.js index 10ced6cf6aac..a9654126b38b 100644 --- a/packages/babel-generator/test/fixtures/async-do-expressions/inner-comments/output.js +++ b/packages/babel-generator/test/fixtures/async-do-expressions/inner-comments/output.js @@ -1,5 +1 @@ -async /* 1 */ do -/* 2 */ -{ - /* 3 */ -}; \ No newline at end of file +async /* 1 */ do /* 2 */{/* 3 */}; \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/comments/async-class-method-comment/output.js b/packages/babel-generator/test/fixtures/comments/async-class-method-comment/output.js index 63a2f2a565d0..8302e190cd10 100644 --- a/packages/babel-generator/test/fixtures/comments/async-class-method-comment/output.js +++ b/packages/babel-generator/test/fixtures/comments/async-class-method-comment/output.js @@ -1,8 +1,3 @@ class C { - async /* 1 */foo( - /* 2 */ - ) - /* 3 */ - {} - + async /* 1 */foo( /* 2 */) /* 3 */{} } \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/comments/async-class-method-computed-key-comment/output.js b/packages/babel-generator/test/fixtures/comments/async-class-method-computed-key-comment/output.js index 0cbc3e2a3adc..dbca0b9748d5 100644 --- a/packages/babel-generator/test/fixtures/comments/async-class-method-computed-key-comment/output.js +++ b/packages/babel-generator/test/fixtures/comments/async-class-method-computed-key-comment/output.js @@ -1,14 +1,3 @@ class C { - async [ - /* 2 */ - foo - /* 3 */ - ] - /* 1 */ - - /* 4 */ - - /* 5 */ - () {} - + async [/* 2 */foo /* 3 */] /* 1 */ /* 4 */ /* 5 */() {} } \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/comments/async-generator-class-method-comment/output.js b/packages/babel-generator/test/fixtures/comments/async-generator-class-method-comment/output.js index 2d9af81a4609..89f3e529357b 100644 --- a/packages/babel-generator/test/fixtures/comments/async-generator-class-method-comment/output.js +++ b/packages/babel-generator/test/fixtures/comments/async-generator-class-method-comment/output.js @@ -1,10 +1,3 @@ class C { - async /* 1 */ /* 4 */* - /* 2 */ - foo - /* 3 */ - () - /* 5 */ - {} - + async /* 1 */ /* 4 */* /* 2 */foo /* 3 */() /* 5 */{} } \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/comments/async-generator-class-method-computed-key-comment/output.js b/packages/babel-generator/test/fixtures/comments/async-generator-class-method-computed-key-comment/output.js index a883c47fcb24..46783d555037 100644 --- a/packages/babel-generator/test/fixtures/comments/async-generator-class-method-computed-key-comment/output.js +++ b/packages/babel-generator/test/fixtures/comments/async-generator-class-method-computed-key-comment/output.js @@ -1,8 +1,3 @@ class C { - async /* 1 */ /* 2 */ /* 5 */ /* 6 */*[ - /* 3 */ - foo - /* 4 */ - ]() {} - + async /* 1 */ /* 2 */ /* 5 */ /* 6 */*[/* 3 */foo /* 4 */]() {} } \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/comments/import-assertion-inner-comment/output.js b/packages/babel-generator/test/fixtures/comments/import-assertion-inner-comment/output.js index aa93403ae9c2..15516625752a 100644 --- a/packages/babel-generator/test/fixtures/comments/import-assertion-inner-comment/output.js +++ b/packages/babel-generator/test/fixtures/comments/import-assertion-inner-comment/output.js @@ -1,3 +1 @@ -import "foo" /* 1 */ assert - /* 2 */ -{ type: "json" }; \ No newline at end of file +import "foo" /* 1 */ assert /* 2 */{ type: "json" }; \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/comments/yield-star-inner-comment/output.js b/packages/babel-generator/test/fixtures/comments/yield-star-inner-comment/output.js index 127b2ad57717..81c6fdfccdcf 100644 --- a/packages/babel-generator/test/fixtures/comments/yield-star-inner-comment/output.js +++ b/packages/babel-generator/test/fixtures/comments/yield-star-inner-comment/output.js @@ -1,5 +1,3 @@ function* loop() { - yield /* 1 */* - /* 2 */ - loop(); + yield /* 1 */* /* 2 */loop(); } \ No newline at end of file diff --git a/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-optional-param/output.js b/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-optional-param/output.js index b4c55a034047..97404c5ed653 100644 --- a/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-optional-param/output.js +++ b/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-optional-param/output.js @@ -1 +1 @@ -const x = (foo /*:: ?*/) => {}; +const x = foo /*:: ?*/ => {}; diff --git a/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-param-type/output.js b/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-param-type/output.js index e29c6196f0b9..fd89f9501670 100644 --- a/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-param-type/output.js +++ b/packages/babel-plugin-transform-flow-comments/test/fixtures/flow-comments/arrow-single-param-type/output.js @@ -1 +1 @@ -const x = (foo /*: string*/) => {}; +const x = foo /*: string*/ => {};