Skip to content

Commit 8033306

Browse files
committed
fix: fix typescrpit test fixtures names
1 parent c096d5b commit 8033306

File tree

53 files changed

+15
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+15
-19
lines changed

transforms/__testfixtures__/create-element-to-jsx-preserve-comments.output.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ var React = require('react');
22

33
const render = () => {
44
return (
5-
/*1*//*4*//*2*//*3*/<div
5+
/*1*//*2*//*3*/<div
66
/*8*/className/*9*/=/*10*/"foo"/*11*/
77
/*12*/
88
/*13*///17
99
onClick/*14*/={/*15*/ this.handleClick}/*16*/>
10-
{/*19*///25
11-
<TodoList.Item />/*24*//*20*//*23*//*21*//*22*//*20*//*23*//*21*//*22*//*21*//*22*/}
12-
<span {.../*26*/getProps()/*27*/} />
10+
{/*18*//*19*/<TodoList.Item />/*24*//*20*//*23*//*21*//*22*//*20*//*23*//*21*//*22*//*21*//*22*/}
11+
{//25
12+
<span {.../*26*/getProps()/*27*/} />}
1313
{<input /> /*28*//*29*/}
14-
</div>
15-
/*5*//*6*//*7*//*18*/
14+
</div>/*4*/
15+
/*5*//*6*//*7*/
1616
);
1717
};
1818

transforms/__testfixtures__/remove-context-provider/typescript/no-provider.input.js renamed to transforms/__testfixtures__/remove-context-provider/typescript/no-provider.input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ function App({ url }: { url: string }) {
66
<Page />
77
</Context>
88
);
9-
}
9+
}

transforms/__testfixtures__/remove-context-provider/typescript/with-provider-2.input.js renamed to transforms/__testfixtures__/remove-context-provider/typescript/with-provider-2.input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function App({ url }: { url: string }) {
33

44
return (
55
<Context.Provider value={theme}>
6-
<Page />
76
</Context.Provider>
87
);
9-
}
8+
}

transforms/__testfixtures__/remove-context-provider/typescript/with-provider-2.output.js renamed to transforms/__testfixtures__/remove-context-provider/typescript/with-provider-2.output.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function App({ url }: { url: string }) {
33

44
return (
55
<Context value={theme}>
6-
<Page />
76
</Context>
87
);
9-
}
8+
}

transforms/__testfixtures__/remove-context-provider/typescript/with-provider.input.js renamed to transforms/__testfixtures__/remove-context-provider/typescript/with-provider.input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ function App({ url }: { url: string }) {
66
<Page />
77
</ThemeContext.Provider>
88
);
9-
}
9+
}

transforms/__testfixtures__/remove-context-provider/typescript/with-provider.output.js renamed to transforms/__testfixtures__/remove-context-provider/typescript/with-provider.output.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ function App({ url }: { url: string }) {
66
<Page />
77
</ThemeContext>
88
);
9-
}
9+
}

transforms/__testfixtures__/remove-context-provider/with-provider-2.input.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function App() {
33

44
return (
55
<Context.Provider value={theme}>
6-
<Page />
76
</Context.Provider>
87
);
98
}

transforms/__testfixtures__/remove-context-provider/with-provider-2.output.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ function App() {
33

44
return (
55
<Context value={theme}>
6-
<Page />
76
</Context>
87
);
98
}

transforms/__testfixtures__/remove-forward-ref/typescript/props-type-literal.output.js renamed to transforms/__testfixtures__/remove-forward-ref/typescript/props-type-literal.output.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const MyComponent = function Component(
33
ref: myRef,
44
...myProps
55
}: { a: 1 } & {
6-
ref: React.RefObject<unknown>
6+
ref: React.RefObject<unknown>;
77
}
88
) {
99
return null;

transforms/__testfixtures__/remove-forward-ref/typescript/type-arguments-custom-names.output.js renamed to transforms/__testfixtures__/remove-forward-ref/typescript/type-arguments-custom-names.output.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const MyComponent = function Component(
33
ref: myRef,
44
...myProps
55
}: Props & {
6-
ref: React.RefObject<HTMLButtonElement>
6+
ref: React.RefObject<HTMLButtonElement>;
77
}
88
) {
99
return null;

transforms/__testfixtures__/remove-forward-ref/typescript/type-arguments-type-literals.output.js renamed to transforms/__testfixtures__/remove-forward-ref/typescript/type-arguments-type-literals.output.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const MyInput = (
33
ref,
44
...props
55
}: { a: string } & {
6-
ref: React.RefObject<RefValueType>
6+
ref: React.RefObject<RefValueType>;
77
}
88
) => {
99
return null;

transforms/__testfixtures__/remove-forward-ref/typescript/type-arguments.output.js renamed to transforms/__testfixtures__/remove-forward-ref/typescript/type-arguments.output.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const MyInput = (
55
ref,
66
...props
77
}: Props & {
8-
ref: React.RefObject<HTMLInputElement>
8+
ref: React.RefObject<HTMLInputElement>;
99
}
1010
) => {
1111
return null;

0 commit comments

Comments
 (0)