Skip to content

Commit

Permalink
Revert "Update tests for color"
Browse files Browse the repository at this point in the history
This reverts commit c244d9d.
  • Loading branch information
kdy1 committed Jan 23, 2024
1 parent b192a77 commit d058a1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/e2e/app-dir/rsc-basic/rsc-basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ createNextDescribe(

// from styled-jsx
expect(head).toMatch(/{color:(\s*)purple;?}/) // styled-jsx/style
expect(head).toMatch(/{color:(\s*)#ff69b4;?}/) // styled-jsx/css
expect(head).toMatch(/{color:(\s*)hotpink;?}/) // styled-jsx/css

// from styled-components
expect(head).toMatch(/{color:(\s*)blue;?}/)
Expand All @@ -352,7 +352,7 @@ createNextDescribe(

// from styled-jsx
expect(head).toMatch(/{color:(\s*)purple;?}/) // styled-jsx/style
expect(head).toMatch(/{color:(\s*)#ff69b4;?}/) // styled-jsx/css
expect(head).toMatch(/{color:(\s*)hotpink;?}/) // styled-jsx/css

// from styled-components
expect(head).toMatch(/{color:(\s*)blue;?}/)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/react-18/test/concurrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default (context, _render) => {
context.appPort,
'/use-flush-effect/styled-jsx'
)
const stylesOccurrence = html.match(/color:(\s)*#00f/g) || []
const stylesOccurrence = html.match(/color:(\s)*blue/g) || []
expect(stylesOccurrence.length).toBe(1)

await withBrowser('/use-flush-effect/styled-jsx', async (browser) => {
Expand Down

0 comments on commit d058a1d

Please sign in to comment.