@@ -255,11 +255,11 @@ describe('onBuild()', () => {
255
255
expect ( config . config . env . NEXTAUTH_URL ) . toEqual ( mockUserDefinedSiteUrl )
256
256
} )
257
257
258
- test ( ' sets the NEXTAUTH_URL to the DEPLOY_PRIME_URL when CONTEXT env variable is not \ 'production\'' , async ( ) => {
258
+ test ( " sets the NEXTAUTH_URL to the DEPLOY_PRIME_URL when CONTEXT env variable is not 'production'" , async ( ) => {
259
259
const mockUserDefinedSiteUrl = chance . url ( )
260
260
process . env . DEPLOY_PRIME_URL = mockUserDefinedSiteUrl
261
261
process . env . URL = chance . url ( )
262
-
262
+
263
263
// See https://docs.netlify.com/configure-builds/environment-variables/#build-metadata for all possible values
264
264
process . env . CONTEXT = 'deploy-preview'
265
265
@@ -277,8 +277,8 @@ describe('onBuild()', () => {
277
277
278
278
expect ( config . config . env . NEXTAUTH_URL ) . toEqual ( mockUserDefinedSiteUrl )
279
279
} )
280
-
281
- test ( ' sets the NEXTAUTH_URL to the user defined site URL when CONTEXT env variable is \ 'production\'' , async ( ) => {
280
+
281
+ test ( " sets the NEXTAUTH_URL to the user defined site URL when CONTEXT env variable is 'production'" , async ( ) => {
282
282
const mockUserDefinedSiteUrl = chance . url ( )
283
283
process . env . DEPLOY_PRIME_URL = chance . url ( )
284
284
process . env . URL = mockUserDefinedSiteUrl
@@ -300,7 +300,6 @@ describe('onBuild()', () => {
300
300
301
301
expect ( config . config . env . NEXTAUTH_URL ) . toEqual ( mockUserDefinedSiteUrl )
302
302
} )
303
-
304
303
305
304
test ( 'sets the NEXTAUTH_URL specified in the netlify.toml or in the Netlify UI' , async ( ) => {
306
305
const mockSiteUrl = chance . url ( )
@@ -615,7 +614,7 @@ describe('onBuild()', () => {
615
614
const imageConfigPath = path . join ( constants . INTERNAL_FUNCTIONS_SRC , IMAGE_FUNCTION_NAME , 'imageconfig.json' )
616
615
const imageConfigJson = await readJson ( imageConfigPath )
617
616
618
- expect ( imageConfigJson . domains . length ) . toBe ( 2 )
617
+ expect ( imageConfigJson . domains . length ) . toBe ( 1 )
619
618
expect ( imageConfigJson . remotePatterns . length ) . toBe ( 1 )
620
619
expect ( imageConfigJson . responseHeaders ) . toStrictEqual ( {
621
620
'X-Foo' : mockHeaderValue ,
0 commit comments