+ })
+
+ it('Should fail if email disabled and signup requires email verification', async function () {
+ // opposite scenario - success when enable enabled - covered via tests/api/users/user-verification.ts
+ const newUpdateParams = {
+ ...updateParams,
+
+ signup: {
+ enabled: true,
+ limit: 5,
+ requiresEmailVerification: true
+ }
+ }
+
+ await makePutBodyRequest({
+ url: server.url,
+ path,
+ fields: newUpdateParams,
+ token: server.accessToken,
+ expectedStatus: HttpStatusCode.BAD_REQUEST_400
+ })
+ })
+
+ it('Should fail with a disabled webtorrent & hls transcoding', async function () {
+ const newUpdateParams = {
+ ...updateParams,
+
+ transcoding: {
+ hls: {
+ enabled: false
+ },
+ webtorrent: {
+ enabled: false
+ }
+ }
+ }