Commit 25e84437 authored by Jiachi Liu's avatar Jiachi Liu

test: fix testing snapshot

parent 30b9c8f9
...@@ -76,16 +76,16 @@ async function getStackFramesContent(browser) { ...@@ -76,16 +76,16 @@ async function getStackFramesContent(browser) {
} else { } else {
expect(stackFramesContent).toMatchInlineSnapshot(`""`) expect(stackFramesContent).toMatchInlineSnapshot(`""`)
expect(source).toMatchInlineSnapshot(` expect(source).toMatchInlineSnapshot(`
"app/rsc/page.tsx (5:6) @ Page "app/rsc/page.tsx (5:6) @ div
3 | export default function Page() { 3 | export default function Page() {
4 | return ( 4 | return (
> 5 | <div> > 5 | <div>
| ^ | ^
6 | {list.map((item, index) => ( 6 | {list.map((item, index) => (
7 | <span>{item}</span> 7 | <span>{item}</span>
8 | ))}" 8 | ))}"
`) `)
} }
}) })
...@@ -111,16 +111,16 @@ async function getStackFramesContent(browser) { ...@@ -111,16 +111,16 @@ async function getStackFramesContent(browser) {
} else { } else {
expect(stackFramesContent).toMatchInlineSnapshot(`""`) expect(stackFramesContent).toMatchInlineSnapshot(`""`)
expect(source).toMatchInlineSnapshot(` expect(source).toMatchInlineSnapshot(`
"app/ssr/page.tsx (7:6) @ Page "app/ssr/page.tsx (7:6) @ div
5 | export default function Page() { 5 | export default function Page() {
6 | return ( 6 | return (
> 7 | <div> > 7 | <div>
| ^ | ^
8 | {list.map((item, index) => ( 8 | {list.map((item, index) => (
9 | <p>{item}</p> 9 | <p>{item}</p>
10 | ))}" 10 | ))}"
`) `)
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment