Skip to content

Commit

Permalink
Tests: Tolerate u+ in unicode-range (I guess an in-range dep changed)
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jul 9, 2022
1 parent 5365689 commit 92a7871
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/subsetFonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ describe('subsetFonts', function () {
})[0];
expect(
fallbackCss.text,
'to contain',
'format("woff");unicode-range:U+0,U+d,U+20-7e,'
'to match',
/format\("woff"\);unicode-range:U\+0,U\+d,U\+20-7e,/i
);
});

Expand Down Expand Up @@ -1767,8 +1767,8 @@ describe('subsetFonts', function () {
});
expect(
originalFontFaceSrcRelation.from.text,
'to contain',
'unicode-range:U+20-7e,U+a0-ff,'
'to match',
/unicode-range:U\+20-7e,U\+a0-ff,/i
);
});
});
Expand Down Expand Up @@ -1818,17 +1818,17 @@ describe('subsetFonts', function () {
});
expect(
inputMonoRegularRelation.node.toString(),
'to contain',
'unicode-range:U+'
'to match',
/unicode-range:U\+/i
);
const [inputMonoBoldRelation] = assetGraph.findRelations({
type: 'CssFontFaceSrc',
to: { fileName: 'InputMono-Medium.woff2' },
});
expect(
inputMonoBoldRelation.node.toString(),
'to contain',
'unicode-range:U+'
'to match',
/unicode-range:U\+/i
);
});
});
Expand Down

0 comments on commit 92a7871

Please sign in to comment.