Skip to content

Commit 25e8443

Browse files
committed
test: fix testing snapshot
1 parent 30b9c8f commit 25e8443

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/development/app-dir/owner-stack-react-missing-key-prop/react-missing-key-prop.test.ts

+18-18
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,16 @@ async function getStackFramesContent(browser) {
7676
} else {
7777
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
7878
expect(source).toMatchInlineSnapshot(`
79-
"app/rsc/page.tsx (5:6) @ Page
79+
"app/rsc/page.tsx (5:6) @ div
8080
81-
3 | export default function Page() {
82-
4 | return (
83-
> 5 | <div>
84-
| ^
85-
6 | {list.map((item, index) => (
86-
7 | <span>{item}</span>
87-
8 | ))}"
88-
`)
81+
3 | export default function Page() {
82+
4 | return (
83+
> 5 | <div>
84+
| ^
85+
6 | {list.map((item, index) => (
86+
7 | <span>{item}</span>
87+
8 | ))}"
88+
`)
8989
}
9090
})
9191

@@ -111,16 +111,16 @@ async function getStackFramesContent(browser) {
111111
} else {
112112
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
113113
expect(source).toMatchInlineSnapshot(`
114-
"app/ssr/page.tsx (7:6) @ Page
114+
"app/ssr/page.tsx (7:6) @ div
115115
116-
5 | export default function Page() {
117-
6 | return (
118-
> 7 | <div>
119-
| ^
120-
8 | {list.map((item, index) => (
121-
9 | <p>{item}</p>
122-
10 | ))}"
123-
`)
116+
5 | export default function Page() {
117+
6 | return (
118+
> 7 | <div>
119+
| ^
120+
8 | {list.map((item, index) => (
121+
9 | <p>{item}</p>
122+
10 | ))}"
123+
`)
124124
}
125125
})
126126
}

0 commit comments

Comments
 (0)