-/* tslint:disable:no-unused-expression */
+/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import * as chai from 'chai'
import 'mocha'
const videos = res.body.data
expect(videos).to.have.lengthOf(2)
- expect(videos[ 0 ].name).to.equal('normal')
- expect(videos[ 1 ].name).to.equal('nsfw')
+ expect(videos[0].name).to.equal('normal')
+ expect(videos[1].name).to.equal('nsfw')
}
})
const videos = res.body.data
expect(videos).to.have.lengthOf(1)
- expect(videos[ 0 ].name).to.equal('normal')
+ expect(videos[0].name).to.equal('normal')
}
})
const videos = res.body.data
expect(videos).to.have.lengthOf(2)
- expect(videos[ 0 ].name).to.equal('normal')
- expect(videos[ 1 ].name).to.equal('nsfw')
+ expect(videos[0].name).to.equal('normal')
+ expect(videos[1].name).to.equal('nsfw')
}
})
})
const videos = res.body.data
expect(videos).to.have.lengthOf(2)
- expect(videos[ 0 ].name).to.equal('normal')
- expect(videos[ 1 ].name).to.equal('nsfw')
+ expect(videos[0].name).to.equal('normal')
+ expect(videos[1].name).to.equal('nsfw')
}
})
const videos = res.body.data
expect(videos).to.have.lengthOf(2)
- expect(videos[ 0 ].name).to.equal('normal')
- expect(videos[ 1 ].name).to.equal('nsfw')
+ expect(videos[0].name).to.equal('normal')
+ expect(videos[1].name).to.equal('nsfw')
}
})
const videos = res.body.data
expect(videos).to.have.lengthOf(1)
- expect(videos[ 0 ].name).to.equal('normal')
+ expect(videos[0].name).to.equal('normal')
}
})
const videos = res.body.data
expect(videos).to.have.lengthOf(2)
- expect(videos[ 0 ].name).to.equal('normal')
- expect(videos[ 1 ].name).to.equal('nsfw')
+ expect(videos[0].name).to.equal('normal')
+ expect(videos[1].name).to.equal('nsfw')
})
it('Should display NSFW videos when the nsfw param === true', async function () {
const videos = res.body.data
expect(videos).to.have.lengthOf(1)
- expect(videos[ 0 ].name).to.equal('nsfw')
+ expect(videos[0].name).to.equal('nsfw')
}
})
const videos = res.body.data
expect(videos).to.have.lengthOf(1)
- expect(videos[ 0 ].name).to.equal('normal')
+ expect(videos[0].name).to.equal('normal')
}
})
const videos = res.body.data
expect(videos).to.have.lengthOf(2)
- expect(videos[ 0 ].name).to.equal('normal')
- expect(videos[ 1 ].name).to.equal('nsfw')
+ expect(videos[0].name).to.equal('normal')
+ expect(videos[1].name).to.equal('nsfw')
}
})
})