Skip to content

Commit

Permalink
wip: new hash algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Oct 3, 2023
1 parent a3c750f commit ae0b4c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playground/css/__tests__/css.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ test('async chunk', async () => {
if (isBuild) {
// assert that the css is extracted into its own file instead of in the
// main css file
expect(findAssetFile(/index-[-\w]+\.css$/)).not.toMatch('teal')
expect(findAssetFile(/async-[-\w]+\.css$/)).toMatch('.async{color:teal}')
expect(findAssetFile(/index-[-\w]{8}\.css$/)).not.toMatch('teal')
expect(findAssetFile(/async-[-\w]{8}\.css$/)).toMatch('.async{color:teal}')
} else {
// test hmr
editFile('async.css', (code) => code.replace('color: teal', 'color: blue'))
Expand Down

0 comments on commit ae0b4c4

Please sign in to comment.