Remove video preview setting

Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
Alexandre Bodin 2020-03-13 09:37:47 +01:00
parent 243085dae1
commit 55bdc146b7
4 changed files with 0 additions and 7 deletions

View File

@ -23,7 +23,6 @@ module.exports = async () => {
value: {
sizeOptimization: true,
responsiveDimensions: true,
videoPreview: true,
},
});
}

View File

@ -5,7 +5,6 @@ const { yup, formatYupErrors } = require('strapi-utils');
const settingsSchema = yup.object({
sizeOptimization: yup.boolean().required(),
responsiveDimensions: yup.boolean().required(),
videoPreview: yup.boolean().required(),
});
const validateSettings = data => {

View File

@ -35,7 +35,6 @@ describe('Upload plugin bootstrap function', () => {
expect(setStore).toHaveBeenCalledWith({
value: {
sizeOptimization: true,
videoPreview: true,
responsiveDimensions: true,
},
});

View File

@ -22,7 +22,6 @@ describe('Upload plugin end to end tests', () => {
expect(res.body).toEqual({
data: {
sizeOptimization: true,
videoPreview: true,
responsiveDimensions: true,
},
});
@ -34,7 +33,6 @@ describe('Upload plugin end to end tests', () => {
const updateRes = await rq.put('/upload/settings', {
body: {
sizeOptimization: true,
videoPreview: false,
responsiveDimensions: true,
},
});
@ -43,7 +41,6 @@ describe('Upload plugin end to end tests', () => {
expect(updateRes.body).toEqual({
data: {
sizeOptimization: true,
videoPreview: false,
responsiveDimensions: true,
},
});
@ -54,7 +51,6 @@ describe('Upload plugin end to end tests', () => {
expect(getRes.body).toEqual({
data: {
sizeOptimization: true,
videoPreview: false,
responsiveDimensions: true,
},
});