Skip to content

Commit 79546da

Browse files
clydinfilipesilva
authored andcommitted
test: account for escaped embedded CSS URLs
1 parent 3f4f6a8 commit 79546da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/e2e/tests/build/styles/inline-urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function () {
5454
.then(() => expectFileToMatch('dist/main.bundle.js',
5555
/url\(\\?[\'"]data:image\/svg\+xml/))
5656
.then(() => expectFileToMatch('dist/main.bundle.js',
57-
/url\([\'"]?large\.[0-9a-f]{20}\.png[\'"]?\)/))
57+
/url\((?:[\'"]|\\')?large\.[0-9a-f]{20}\.png(?:[\'"]|\\')?\)/))
5858
// Check files are correctly created.
5959
.then(() => expectToFail(() => expectFileToExist('dist/small.svg')))
6060
.then(() => expectFileMatchToExist('./dist', /large\.[0-9a-f]{20}\.png/))

0 commit comments

Comments
 (0)