Skip to content

Commit 834a383

Browse files
authored
Merge pull request #2712 from modernweb-dev/fix/windows-tests
fix: windows tests
2 parents c9044fc + 195109a commit 834a383

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/rollup-plugin-html/test/rollup-plugin-html.test.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,8 @@ describe('rollup-plugin-html', () => {
10731073
expect(fontBold).to.exist;
10741074
expect(fontNormal).to.exist;
10751075
// e.g. "font-normal-f0mNRiTD.woff2"
1076-
const regex = /assets\/font-normal-\w+\.woff2/;
1076+
// eslint-disable-next-line no-useless-escape
1077+
const regex = /assets[\/\\]font-normal-\w+\.woff2/;
10771078
// It outputs the font to the assets folder
10781079
expect(regex.test(fontNormal!.fileName)).to.equal(true);
10791080

@@ -1112,7 +1113,8 @@ describe('rollup-plugin-html', () => {
11121113
// It has emitted the font
11131114
expect(font).to.exist;
11141115
// e.g. "font-normal-f0mNRiTD.woff2"
1115-
const regex = /assets\/font-normal-\w+\.woff2/;
1116+
// eslint-disable-next-line no-useless-escape
1117+
const regex = /assets[\/\\]font-normal-\w+\.woff2/;
11161118
// It outputs the font to the assets folder
11171119
expect(regex.test(font!.fileName)).to.equal(true);
11181120

@@ -1257,8 +1259,8 @@ describe('rollup-plugin-html', () => {
12571259
expect(output.length).to.equal(8);
12581260

12591261
const expectedAssets = [
1260-
'assets/image-a.png',
1261-
'assets/image-d.png',
1262+
'image-a.png',
1263+
'image-d.png',
12621264
'styles-with-referenced-assets.css',
12631265
'image-a.png',
12641266
'image-d.png',

0 commit comments

Comments
 (0)