@@ -20,7 +20,6 @@ describe('InlineFontsProcessor', () => {
20
20
21
21
it ( 'works with // protocol' , async ( ) => {
22
22
const inlineFontsProcessor = new InlineFontsProcessor ( {
23
- WOFFSupportNeeded : false ,
24
23
minify : false ,
25
24
} ) ;
26
25
@@ -31,7 +30,6 @@ describe('InlineFontsProcessor', () => {
31
30
it ( 'should inline supported fonts and icons in HTML' , async ( ) => {
32
31
const inlineFontsProcessor = new InlineFontsProcessor ( {
33
32
minify : false ,
34
- WOFFSupportNeeded : false ,
35
33
} ) ;
36
34
37
35
const html = await inlineFontsProcessor . process ( `
@@ -56,7 +54,6 @@ describe('InlineFontsProcessor', () => {
56
54
it ( 'should inline multiple fonts from a single request with minification enabled' , async ( ) => {
57
55
const inlineFontsProcessor = new InlineFontsProcessor ( {
58
56
minify : true ,
59
- WOFFSupportNeeded : false ,
60
57
} ) ;
61
58
62
59
const html = await inlineFontsProcessor . process ( `
@@ -76,28 +73,15 @@ describe('InlineFontsProcessor', () => {
76
73
77
74
it ( 'works with http protocol' , async ( ) => {
78
75
const inlineFontsProcessor = new InlineFontsProcessor ( {
79
- WOFFSupportNeeded : false ,
80
76
minify : false ,
81
77
} ) ;
82
78
83
79
const html = await inlineFontsProcessor . process ( content . replace ( 'https://' , 'http://' ) ) ;
84
80
expect ( html ) . toContain ( `format('woff2');` ) ;
85
81
} ) ;
86
82
87
- it ( 'should include WOFF1 definitions when `WOFF1SupportNeeded` is true' , async ( ) => {
88
- const inlineFontsProcessor = new InlineFontsProcessor ( {
89
- WOFFSupportNeeded : true ,
90
- minify : false ,
91
- } ) ;
92
-
93
- const html = await inlineFontsProcessor . process ( content ) ;
94
- expect ( html ) . toContain ( `format('woff2');` ) ;
95
- expect ( html ) . toContain ( `format('woff');` ) ;
96
- } ) ;
97
-
98
83
it ( 'should remove comments and line breaks when `minifyInlinedCSS` is true' , async ( ) => {
99
84
const inlineFontsProcessor = new InlineFontsProcessor ( {
100
- WOFFSupportNeeded : false ,
101
85
minify : true ,
102
86
} ) ;
103
87
@@ -108,7 +92,6 @@ describe('InlineFontsProcessor', () => {
108
92
109
93
it ( 'should add preconnect hint' , async ( ) => {
110
94
const inlineFontsProcessor = new InlineFontsProcessor ( {
111
- WOFFSupportNeeded : true ,
112
95
minify : false ,
113
96
} ) ;
114
97
@@ -128,21 +111,8 @@ describe('InlineFontsProcessor', () => {
128
111
<body></body>
129
112
</html>` ;
130
113
131
- it ( 'should include WOFF1 definitions when `WOFF1SupportNeeded` is true' , async ( ) => {
132
- const inlineFontsProcessor = new InlineFontsProcessor ( {
133
- WOFFSupportNeeded : true ,
134
- minify : false ,
135
- } ) ;
136
-
137
- const html = await inlineFontsProcessor . process ( content ) ;
138
- expect ( html ) . not . toContain ( 'href="https://use.typekit.net/plm1izr.css"' ) ;
139
- expect ( html ) . toContain ( `format("woff2")` ) ;
140
- expect ( html ) . toContain ( `format("woff")` ) ;
141
- } ) ;
142
-
143
114
it ( 'should add preconnect hint' , async ( ) => {
144
115
const inlineFontsProcessor = new InlineFontsProcessor ( {
145
- WOFFSupportNeeded : true ,
146
116
minify : false ,
147
117
} ) ;
148
118
0 commit comments