test(streams): corrected test for stream grant permissions

This commit is contained in:
Dimitrie Stefanescu
2020-04-09 11:09:51 +01:00
parent f797365d90
commit beabdaf2b6
+1 -2
View File
@@ -221,8 +221,7 @@ describe( 'Streams', ( ) => {
expect( shareRes ).to.have.status( 201 )
const userBRes = await chai.request( app ).get( `/streams/${privateStream.id}` ).set( 'Authorization', `Bearer ${tokenB}` )
// expect( userBRes ).to.have.status( 200 )
userBRes.should.have.status( 200 )
expect( userBRes ).to.have.status( 200 )
expect( userBRes.body ).to.have.property( 'name' )
expect( userBRes.body ).to.have.property( 'description' )
} )