File tree Expand file tree Collapse file tree
dotcom-rendering/src/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,22 +17,11 @@ describe('decidePublicPath', () => {
1717
1818 mockFrontendAssetsFullURL ( 'https://assets.guim.co.uk/' ) ;
1919
20- process . env = { NODE_ENV : undefined , HOSTNAME : undefined } ;
20+ process . env = { USE_LOCAL_ASSETS : undefined } ;
2121 } ) ;
2222
23- it ( 'with development flag' , ( ) => {
24- process . env . NODE_ENV = 'development' ;
25- expect ( decidePublicPath ( ) ) . toEqual ( '/assets/' ) ;
26- } ) ;
27-
28- it ( 'with production flag' , ( ) => {
29- process . env . NODE_ENV = 'production' ;
30- expect ( decidePublicPath ( ) ) . toEqual ( 'https://assets.guim.co.uk/assets/' ) ;
31- } ) ;
32-
33- it ( 'with production flag in CI' , ( ) => {
34- process . env . NODE_ENV = 'production' ;
35- process . env . CI = 'true' ;
23+ it ( 'with USE_LOCAL_ASSETS flag' , ( ) => {
24+ process . env . USE_LOCAL_ASSETS = 'true' ;
3625 expect ( decidePublicPath ( ) ) . toEqual ( '/assets/' ) ;
3726 } ) ;
3827
You can’t perform that action at this time.
0 commit comments