@@ -126,7 +126,7 @@ describe('does not render survey prompt or contribution button', () => {
126126
127127describe ( 'JS and CSS assets' , ( ) => {
128128 it ( 'returns the expected CSS file > 2.18' , async ( ) => {
129- const result = await supertest ( app )
129+ const result = await supertest ( app ( ) )
130130 . get ( '/enterprise/2.18/dist/index.css' )
131131 . set ( 'Referrer' , '/en/enterprise/2.18' )
132132
@@ -136,7 +136,7 @@ describe('JS and CSS assets', () => {
136136 } )
137137
138138 it ( 'returns the expected CSS file' , async ( ) => {
139- const result = await supertest ( app )
139+ const result = await supertest ( app ( ) )
140140 . get ( '/stylesheets/index.css' )
141141 . set ( 'Referrer' , '/en/enterprise/2.13' )
142142
@@ -146,7 +146,7 @@ describe('JS and CSS assets', () => {
146146 } )
147147
148148 it ( 'returns the expected JS file > 2.18' , async ( ) => {
149- const result = await supertest ( app )
149+ const result = await supertest ( app ( ) )
150150 . get ( '/enterprise/2.18/dist/index.js' )
151151 . set ( 'Referrer' , '/en/enterprise/2.18' )
152152
@@ -156,7 +156,7 @@ describe('JS and CSS assets', () => {
156156 } )
157157
158158 it ( 'returns the expected JS file' , async ( ) => {
159- const result = await supertest ( app )
159+ const result = await supertest ( app ( ) )
160160 . get ( '/javascripts/index.js' )
161161 . set ( 'Referrer' , '/en/enterprise/2.13' )
162162
@@ -166,7 +166,7 @@ describe('JS and CSS assets', () => {
166166 } )
167167
168168 it ( 'returns the expected image' , async ( ) => {
169- const result = await supertest ( app )
169+ const result = await supertest ( app ( ) )
170170 . get ( '/assets/images/octicons/hamburger.svg' )
171171 . set ( 'Referrer' , '/en/enterprise/2.17' )
172172
@@ -176,7 +176,7 @@ describe('JS and CSS assets', () => {
176176 } )
177177
178178 it ( 'returns the expected node_modules' , async ( ) => {
179- const result = await supertest ( app )
179+ const result = await supertest ( app ( ) )
180180 . get ( '/node_modules/algoliasearch/dist/algoliasearch.min.js' )
181181 . set ( 'Referrer' , '/en/enterprise/2.17' )
182182
@@ -186,7 +186,7 @@ describe('JS and CSS assets', () => {
186186 } )
187187
188188 it ( 'returns the expected favicon' , async ( ) => {
189- const result = await supertest ( app )
189+ const result = await supertest ( app ( ) )
190190 . get ( '/assets/images/site/favicon.svg' )
191191 . set ( 'Referrer' , '/en/enterprise/2.18' )
192192
@@ -196,7 +196,7 @@ describe('JS and CSS assets', () => {
196196 } )
197197
198198 it ( 'returns the expected CSS file ( <2.13 )' , async ( ) => {
199- const result = await supertest ( app )
199+ const result = await supertest ( app ( ) )
200200 . get ( '/assets/stylesheets/application.css' )
201201 . set ( 'Referrer' , '/en/enterprise/2.12' )
202202
@@ -206,7 +206,7 @@ describe('JS and CSS assets', () => {
206206 } )
207207
208208 it ( 'ignores invalid paths' , async ( ) => {
209- const result = await supertest ( app )
209+ const result = await supertest ( app ( ) )
210210 . get ( '/pizza/index.css' )
211211 . set ( 'Referrer' , '/en/enterprise/2.13' )
212212
0 commit comments