Skip to content

Commit 5950ebd

Browse files
authored
fix: relax test case to allow different hash values (svelte 5.38.9 changed the default from css content to filename) (#237)
1 parent 447f79f commit 5950ebd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ test('handles filenames that happen to contain ".svelte"', async () => {
333333

334334
assert.match(
335335
fs.readFileSync('test/filename-test/dist/bundle.css', 'utf8'),
336-
/h1\.svelte-bt9zrl\s*{\s*color:\s*red;?\s*}/
336+
/h1\.svelte-[_a-zA-Z0-9-]+\s*{\s*color:\s*red;?\s*}/
337337
);
338338
});
339339

0 commit comments

Comments
 (0)