Skip to content

Commit

Permalink
test: fix testing snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 17, 2025
1 parent 30b9c8f commit 25e8443
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,16 @@ async function getStackFramesContent(browser) {
} else {
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
expect(source).toMatchInlineSnapshot(`
"app/rsc/page.tsx (5:6) @ Page
"app/rsc/page.tsx (5:6) @ div
3 | export default function Page() {
4 | return (
> 5 | <div>
| ^
6 | {list.map((item, index) => (
7 | <span>{item}</span>
8 | ))}"
`)
3 | export default function Page() {
4 | return (
> 5 | <div>
| ^
6 | {list.map((item, index) => (
7 | <span>{item}</span>
8 | ))}"
`)
}
})

Expand All @@ -111,16 +111,16 @@ async function getStackFramesContent(browser) {
} else {
expect(stackFramesContent).toMatchInlineSnapshot(`""`)
expect(source).toMatchInlineSnapshot(`
"app/ssr/page.tsx (7:6) @ Page
"app/ssr/page.tsx (7:6) @ div
5 | export default function Page() {
6 | return (
> 7 | <div>
| ^
8 | {list.map((item, index) => (
9 | <p>{item}</p>
10 | ))}"
`)
5 | export default function Page() {
6 | return (
> 7 | <div>
| ^
8 | {list.map((item, index) => (
9 | <p>{item}</p>
10 | ))}"
`)
}
})
}
Expand Down

0 comments on commit 25e8443

Please sign in to comment.