@@ -192,6 +192,7 @@ describe('Authentication API (OIDC)', () => {
192192 } )
193193 } )
194194
195+ // TODO: Are the next two tests correct?
195196 describe ( 'with that cookie and a matching origin' , ( ) => {
196197 let response
197198 before ( done => {
@@ -209,37 +210,6 @@ describe('Authentication API (OIDC)', () => {
209210 } )
210211 } )
211212
212- describe ( 'without that cookie but with a this origin' , ( ) => {
213- let response
214- before ( done => {
215- alice . get ( '/' )
216- . set ( 'Origin' , aliceServerUri )
217- . end ( ( err , res ) => {
218- response = res
219- done ( err )
220- } )
221- } )
222-
223- it ( 'Should return a 401' , ( ) => {
224- expect ( response ) . to . have . property ( 'status' , 401 )
225- } )
226- } )
227- describe ( 'without that cookie and a matching origin' , ( ) => {
228- let response
229- before ( done => {
230- alice . get ( '/' )
231- . set ( 'Origin' , bobServerUri )
232- . end ( ( err , res ) => {
233- response = res
234- done ( err )
235- } )
236- } )
237-
238- it ( 'should return a 401' , ( ) => {
239- expect ( response ) . to . have . property ( 'status' , 401 )
240- } )
241- } )
242-
243213 describe ( 'without that cookie but with a matching origin' , ( ) => {
244214 let response
245215 before ( done => {
@@ -251,7 +221,7 @@ describe('Authentication API (OIDC)', () => {
251221 } )
252222 } )
253223
254- it ( 'should return a 401' , ( ) => {
224+ it ( 'Returns a 401, but should it? ' , ( ) => {
255225 expect ( response ) . to . have . property ( 'status' , 401 )
256226 } )
257227 } )
0 commit comments