Skip to content

Commit

Permalink
test: fixing tests for styled-jsx component-scoped styles'
Browse files Browse the repository at this point in the history
  • Loading branch information
JayaKrishnaNamburu committed Sep 16, 2021
1 parent eb86648 commit 56ad1a9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ describe('Generates media, pseudo and normal styles', () => {

expect(cssFile).not.toBeDefined()
expect(jsFile).toBeDefined()
expect(jsFile.content).toContain(`className="container"`)
expect(jsFile.content).toContain(`.container {`)
expect(jsFile.content).toContain(`className="my-component-container"`)
expect(jsFile.content).toContain(`.my-component-container {`)
expect(jsFile.content).toContain(`width: 100px`)
expect(jsFile.content).toContain(`display: none`)
})
Expand Down Expand Up @@ -211,7 +211,7 @@ describe('Add referenced styles even when direct styles are not present on node'

expect(cssFile).not.toBeDefined()
expect(jsFile).toBeDefined()
expect(jsFile.content).toContain(`className="container"`)
expect(jsFile.content).toContain(`className="my-component-container"`)
expect(jsFile.content).toContain(`container {`)
expect(jsFile.content).not.toContain(`width: '100px'`)
expect(jsFile.content).toContain(`display: none`)
Expand Down

0 comments on commit 56ad1a9

Please sign in to comment.