Skip to content

Commit fe2d11c

Browse files
committed
fix indentation
1 parent 35d5996 commit fe2d11c

File tree

1 file changed

+60
-60
lines changed

1 file changed

+60
-60
lines changed

test/development/app-dir/owner-stack-invalid-element-type/invalid-element-type.test.ts

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,30 @@ const isOwnerStackEnabled =
3030
// FIXME: the methodName of the stack frame is not aligned between Turbopack and Webpack
3131
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
3232
expect(source).toMatchInlineSnapshot(`
33-
"app/browser/browser-only.js (8:7) @ BrowserOnly
34-
35-
6 | return (
36-
7 | <div>
37-
> 8 | <Foo />
38-
| ^
39-
9 | </div>
40-
10 | )
41-
11 | }"
42-
`)
33+
"app/browser/browser-only.js (8:7) @ BrowserOnly
34+
35+
6 | return (
36+
7 | <div>
37+
> 8 | <Foo />
38+
| ^
39+
9 | </div>
40+
10 | )
41+
11 | }"
42+
`)
4343
} else {
4444
// FIXME: the methodName of the stack frame is not aligned between Turbopack and Webpack
4545
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
4646
expect(source).toMatchInlineSnapshot(`
47-
"app/browser/browser-only.js (8:8) @ Foo
48-
49-
6 | return (
50-
7 | <div>
51-
> 8 | <Foo />
52-
| ^
53-
9 | </div>
54-
10 | )
55-
11 | }"
56-
`)
47+
"app/browser/browser-only.js (8:8) @ Foo
48+
49+
6 | return (
50+
7 | <div>
51+
> 8 | <Foo />
52+
| ^
53+
9 | </div>
54+
10 | )
55+
11 | }"
56+
`)
5757
}
5858
})
5959

@@ -67,29 +67,29 @@ const isOwnerStackEnabled =
6767
if (process.env.TURBOPACK) {
6868
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
6969
expect(source).toMatchInlineSnapshot(`
70-
"app/rsc/page.js (5:10) @ Inner
71-
72-
3 | // Intermediate component for testing owner stack
73-
4 | function Inner() {
74-
> 5 | return <Foo />
75-
| ^
76-
6 | }
77-
7 |
78-
8 | export default function Page() {"
79-
`)
70+
"app/rsc/page.js (5:10) @ Inner
71+
72+
3 | // Intermediate component for testing owner stack
73+
4 | function Inner() {
74+
> 5 | return <Foo />
75+
| ^
76+
6 | }
77+
7 |
78+
8 | export default function Page() {"
79+
`)
8080
} else {
8181
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
8282
expect(source).toMatchInlineSnapshot(`
83-
"app/rsc/page.js (5:11) @ Foo
84-
85-
3 | // Intermediate component for testing owner stack
86-
4 | function Inner() {
87-
> 5 | return <Foo />
88-
| ^
89-
6 | }
90-
7 |
91-
8 | export default function Page() {"
92-
`)
83+
"app/rsc/page.js (5:11) @ Foo
84+
85+
3 | // Intermediate component for testing owner stack
86+
4 | function Inner() {
87+
> 5 | return <Foo />
88+
| ^
89+
6 | }
90+
7 |
91+
8 | export default function Page() {"
92+
`)
9393
}
9494
})
9595

@@ -103,29 +103,29 @@ const isOwnerStackEnabled =
103103
if (process.env.TURBOPACK) {
104104
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
105105
expect(source).toMatchInlineSnapshot(`
106-
"app/ssr/page.js (7:10) @ Inner
107-
108-
5 | // Intermediate component for testing owner stack
109-
6 | function Inner() {
110-
> 7 | return <Foo />
111-
| ^
112-
8 | }
113-
9 |
114-
10 | export default function Page() {"
115-
`)
106+
"app/ssr/page.js (7:10) @ Inner
107+
108+
5 | // Intermediate component for testing owner stack
109+
6 | function Inner() {
110+
> 7 | return <Foo />
111+
| ^
112+
8 | }
113+
9 |
114+
10 | export default function Page() {"
115+
`)
116116
} else {
117117
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
118118
expect(source).toMatchInlineSnapshot(`
119-
"app/ssr/page.js (7:11) @ Foo
120-
121-
5 | // Intermediate component for testing owner stack
122-
6 | function Inner() {
123-
> 7 | return <Foo />
124-
| ^
125-
8 | }
126-
9 |
127-
10 | export default function Page() {"
128-
`)
119+
"app/ssr/page.js (7:11) @ Foo
120+
121+
5 | // Intermediate component for testing owner stack
122+
6 | function Inner() {
123+
> 7 | return <Foo />
124+
| ^
125+
8 | }
126+
9 |
127+
10 | export default function Page() {"
128+
`)
129129
}
130130
})
131131
}

0 commit comments

Comments
 (0)