@@ -5,7 +5,6 @@ describe('next/font/local loader', () => {
55test ( 'Default CSS' , async ( ) => {
66const { css} = await nextFontLocalFontLoader ( {
77functionName :'' ,
8- deploymentId :undefined ,
98data :[ { src :'./my-font.woff2' } ] ,
109emitFontFile :( ) => '/_next/static/media/my-font.woff2' ,
1110resolve :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-
5931test ( 'Weight and style' , async ( ) => {
6032const { css} = await nextFontLocalFontLoader ( {
6133functionName :'' ,
62- deploymentId :undefined ,
6334data :[ { src :'./my-font.woff2' , weight :'100 900' , style :'italic' } ] ,
6435emitFontFile :( ) => '/_next/static/media/my-font.woff2' ,
6536resolve :jest . fn ( ) ,
@@ -88,7 +59,6 @@ describe('next/font/local loader', () => {
8859test ( 'Other properties' , async ( ) => {
8960const { css} = await nextFontLocalFontLoader ( {
9061functionName :'' ,
91- deploymentId :undefined ,
9262data :[
9363{
9464src :'./my-font.woff2' ,
@@ -125,7 +95,6 @@ describe('next/font/local loader', () => {
12595test ( 'Multiple weights default style' , async ( ) => {
12696const { css} = await nextFontLocalFontLoader ( {
12797functionName :'' ,
128- deploymentId :undefined ,
12998data :[
13099{
131100style :'italic' ,
@@ -202,7 +171,6 @@ describe('next/font/local loader', () => {
202171test ( 'Multiple styles default weight' , async ( ) => {
203172const { css} = await nextFontLocalFontLoader ( {
204173functionName :'' ,
205- deploymentId :undefined ,
206174data :[
207175{
208176weight :'400' ,
@@ -265,7 +233,6 @@ describe('next/font/local loader', () => {
265233test ( 'Custom font-family in declarations' , async ( ) => {
266234const { css} = await nextFontLocalFontLoader ( {
267235functionName :'' ,
268- deploymentId :undefined ,
269236data :[
270237{
271238src :'./my-font.woff2' ,