-
-
Notifications
You must be signed in to change notification settings - Fork 471
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(transformer): fix indentation in transformer test fixtures
- Loading branch information
1 parent
fef1a99
commit 8d1079a
Showing
36 changed files
with
204 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
.../babel-plugin-transform-exponentiation-operator/test/fixtures/private-properties/input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
class C { | ||
#p = 1; | ||
#p = 1; | ||
|
||
method(obj) { | ||
this.#p **= 1; | ||
obj.#p **= 2; | ||
this.x.y.z.#p **= 3; | ||
obj.x.y.z.#p **= 4; | ||
fn().x.y.z.#p **= 5; | ||
} | ||
method(obj) { | ||
this.#p **= 1; | ||
obj.#p **= 2; | ||
this.x.y.z.#p **= 3; | ||
obj.x.y.z.#p **= 4; | ||
fn().x.y.z.#p **= 5; | ||
} | ||
} |
18 changes: 9 additions & 9 deletions
18
...babel-plugin-transform-exponentiation-operator/test/fixtures/private-properties/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
class C { | ||
#p = 1; | ||
#p = 1; | ||
|
||
method(obj) { | ||
var _this, _this$x$y$z, _obj$x$y$z, _fn$x$y$z; | ||
_this = this, _this.#p = Math.pow(_this.#p, 1); | ||
obj.#p = Math.pow(obj.#p, 2); | ||
_this$x$y$z = this.x.y.z, _this$x$y$z.#p = Math.pow(_this$x$y$z.#p, 3); | ||
_obj$x$y$z = obj.x.y.z, _obj$x$y$z.#p = Math.pow(_obj$x$y$z.#p, 4); | ||
_fn$x$y$z = fn().x.y.z, _fn$x$y$z.#p = Math.pow(_fn$x$y$z.#p, 5); | ||
} | ||
method(obj) { | ||
var _this, _this$x$y$z, _obj$x$y$z, _fn$x$y$z; | ||
_this = this, _this.#p = Math.pow(_this.#p, 1); | ||
obj.#p = Math.pow(obj.#p, 2); | ||
_this$x$y$z = this.x.y.z, _this$x$y$z.#p = Math.pow(_this$x$y$z.#p, 3); | ||
_obj$x$y$z = obj.x.y.z, _obj$x$y$z.#p = Math.pow(_obj$x$y$z.#p, 4); | ||
_fn$x$y$z = fn().x.y.z, _fn$x$y$z.#p = Math.pow(_fn$x$y$z.#p, 5); | ||
} | ||
} |
24 changes: 12 additions & 12 deletions
24
...gin-transform-react-jsx/test/fixtures/refresh/can-handle-implicit-arrow-returns/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...-plugin-transform-react-jsx/test/fixtures/refresh/does-not-get-tripped-by-iifes/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
while (item) { | ||
var _s = $RefreshSig$(); | ||
_s((item) => { | ||
_s(); | ||
useFoo(); | ||
}, "useFoo{}", true)(item); | ||
var _s = $RefreshSig$(); | ||
_s((item) => { | ||
_s(); | ||
useFoo(); | ||
}, "useFoo{}", true)(item); | ||
} |
6 changes: 3 additions & 3 deletions
6
...el-plugin-transform-react-jsx/test/fixtures/refresh/emit-full-signatures-option/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...t/fixtures/refresh/generates-signatures-for-function-declarations-calling-hooks/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 24 additions & 24 deletions
48
...st/fixtures/refresh/generates-signatures-for-function-expressions-calling-hooks/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...el-plugin-transform-react-jsx/test/fixtures/refresh/ignores-complex-definitions/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
let A = foo ? () => { | ||
return _jsx("h1", { children: "Hi" }); | ||
return _jsx("h1", { children: "Hi" }); | ||
} : null; | ||
const B = function Foo() { | ||
return _jsx("h1", { children: "Hi" }); | ||
return _jsx("h1", { children: "Hi" }); | ||
}(); | ||
let C = () => () => { | ||
return _jsx("h1", { children: "Hi" }); | ||
return _jsx("h1", { children: "Hi" }); | ||
}; | ||
let D = bar && (() => { | ||
return _jsx("h1", { children: "Hi" }); | ||
return _jsx("h1", { children: "Hi" }); | ||
}); |
6 changes: 3 additions & 3 deletions
6
...eact-jsx/test/fixtures/refresh/ignores-higher-order-functions-that-are-not-hocs/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
const throttledAlert = throttle(function() { | ||
alert("Hi"); | ||
alert("Hi"); | ||
}); | ||
const TooComplex = function() { | ||
return hello; | ||
return hello; | ||
}(() => {}); | ||
if (cond) { | ||
const Foo = thing(() => {}); | ||
const Foo = thing(() => {}); | ||
} |
30 changes: 15 additions & 15 deletions
30
.../babel-plugin-transform-react-jsx/test/fixtures/refresh/ignores-hoc-definitions/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { jsx as _jsx } from "react/jsx-runtime"; | ||
let connect = () => { | ||
function Comp() { | ||
const handleClick = () => {}; | ||
return _jsx("h1", { | ||
onClick: handleClick, | ||
children: "Hi" | ||
}); | ||
} | ||
return Comp; | ||
function Comp() { | ||
const handleClick = () => {}; | ||
return _jsx("h1", { | ||
onClick: handleClick, | ||
children: "Hi" | ||
}); | ||
} | ||
return Comp; | ||
}; | ||
function withRouter() { | ||
return function Child() { | ||
const handleClick = () => {}; | ||
return _jsx("h1", { | ||
onClick: handleClick, | ||
children: "Hi" | ||
}); | ||
}; | ||
return function Child() { | ||
const handleClick = () => {}; | ||
return _jsx("h1", { | ||
onClick: handleClick, | ||
children: "Hi" | ||
}); | ||
}; | ||
} | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
...sform-react-jsx/test/fixtures/refresh/includes-custom-hooks-into-the-signatures/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...n-transform-react-jsx/test/fixtures/refresh/nested-member-expression-with-hooks/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...-react-jsx/test/fixtures/refresh/registers-capitalized-identifiers-in-hoc-calls/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.