- it('Should fail without name', async function () {
- const fields = {
- description: 'super description'
- }
- await makePostBodyRequest({ url: server.url, path, token: server.accessToken, fields })
+ it('Should fail without a name', async function () {
+ const fields = omit(baseCorrectParams, 'name')
+ await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields })
+ })
+
+ it('Should fail with a bad name', async function () {
+ const fields = { ...baseCorrectParams, name: 'super name' }
+ await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields })
+ })
+
+ it('Should fail without a name', async function () {
+ const fields = omit(baseCorrectParams, 'displayName')
+ await makePostBodyRequest({ url: server.url, path: videoChannelPath, token: server.accessToken, fields })