Skip to content

Commit

Permalink
Update jest snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Mar 11, 2024
1 parent 1416ebd commit cc472e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describeVariants.each(['turbo'])('experimental-lightningcss', () => {
expect($('p').text()).toBe('hello world')
// swc_css does not include `-module` in the class name, while lightningcss does.
expect($('p').attr('class')).toBe(
'search-keyword style-module__hlQ3RG__blue'
'search-keyword blue__style-module__hlQ3RG'
)
})
})
Expand All @@ -34,7 +34,7 @@ describeVariants.each(['default'])(
// Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API.
const $ = await next.render$('/')
expect($('p').text()).toBe('hello world')
// We remove hash frmo the class name in test mode using env var because it is not deterministic.
// We remove hash from the class name in test mode using env var because it is not deterministic.
expect($('p').attr('class')).toBe('search-keyword style-module__blue')
})

Expand Down

0 comments on commit cc472e4

Please sign in to comment.