From a559d42a26026650479bea3211562fb26559f27a Mon Sep 17 00:00:00 2001 From: dominikg Date: Mon, 15 Sep 2025 11:32:08 +0200 Subject: [PATCH] fix: relax test case to allow different hash values (svelte 5.38.9 changed the default from css content to filename) --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 5c96695..0c281f9 100644 --- a/test/index.js +++ b/test/index.js @@ -333,7 +333,7 @@ test('handles filenames that happen to contain ".svelte"', async () => { assert.match( fs.readFileSync('test/filename-test/dist/bundle.css', 'utf8'), - /h1\.svelte-bt9zrl\s*{\s*color:\s*red;?\s*}/ + /h1\.svelte-[_a-zA-Z0-9-]+\s*{\s*color:\s*red;?\s*}/ ); });