@@ -5,7 +5,6 @@ describe('next/font/local loader', () => {
55 test ( 'Default CSS' , async ( ) => {
66 const { css } = await nextFontLocalFontLoader ( {
77 functionName : '' ,
8- deploymentId : undefined ,
98 data : [ { src : './my-font.woff2' } ] ,
109 emitFontFile : ( ) => '/_next/static/media/my-font.woff2' ,
1110 resolve : jest . fn ( ) ,
@@ -29,37 +28,9 @@ describe('next/font/local loader', () => {
2928 ` )
3029 } )
3130
32- test ( 'with dpl query string' , async ( ) => {
33- const { css } = await nextFontLocalFontLoader ( {
34- functionName : '' ,
35- deploymentId : 'dpl_123' ,
36- data : [ { src : './my-font.woff2' } ] ,
37- emitFontFile : ( ) => '/_next/static/media/my-font.woff2' ,
38- resolve : jest . fn ( ) ,
39- isDev : false ,
40- isServer : true ,
41- variableName : 'myFont' ,
42- loaderContext : {
43- fs : {
44- readFile : ( _ : string , cb : any ) => cb ( null , 'fontdata' ) ,
45- } ,
46- } as any ,
47- } )
48-
49- expect ( css ) . toMatchInlineSnapshot ( `
50- "@font-face {
51- font-family: myFont;
52- src: url(/_next/static/media/my-font.woff2?dpl=dpl_123) format('woff2');
53- font-display: swap;
54- }
55- "
56- ` )
57- } )
58-
5931 test ( 'Weight and style' , async ( ) => {
6032 const { css } = await nextFontLocalFontLoader ( {
6133 functionName : '' ,
62- deploymentId : undefined ,
6334 data : [ { src : './my-font.woff2' , weight : '100 900' , style : 'italic' } ] ,
6435 emitFontFile : ( ) => '/_next/static/media/my-font.woff2' ,
6536 resolve : jest . fn ( ) ,
@@ -88,7 +59,6 @@ describe('next/font/local loader', () => {
8859 test ( 'Other properties' , async ( ) => {
8960 const { css } = await nextFontLocalFontLoader ( {
9061 functionName : '' ,
91- deploymentId : undefined ,
9262 data : [
9363 {
9464 src : './my-font.woff2' ,
@@ -125,7 +95,6 @@ describe('next/font/local loader', () => {
12595 test ( 'Multiple weights default style' , async ( ) => {
12696 const { css } = await nextFontLocalFontLoader ( {
12797 functionName : '' ,
128- deploymentId : undefined ,
12998 data : [
13099 {
131100 style : 'italic' ,
@@ -202,7 +171,6 @@ describe('next/font/local loader', () => {
202171 test ( 'Multiple styles default weight' , async ( ) => {
203172 const { css } = await nextFontLocalFontLoader ( {
204173 functionName : '' ,
205- deploymentId : undefined ,
206174 data : [
207175 {
208176 weight : '400' ,
@@ -265,7 +233,6 @@ describe('next/font/local loader', () => {
265233 test ( 'Custom font-family in declarations' , async ( ) => {
266234 const { css } = await nextFontLocalFontLoader ( {
267235 functionName : '' ,
268- deploymentId : undefined ,
269236 data : [
270237 {
271238 src : './my-font.woff2' ,
0 commit comments