mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
Remove video preview setting
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
parent
243085dae1
commit
55bdc146b7
@ -23,7 +23,6 @@ module.exports = async () => {
|
||||
value: {
|
||||
sizeOptimization: true,
|
||||
responsiveDimensions: true,
|
||||
videoPreview: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
@ -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 => {
|
||||
|
||||
@ -35,7 +35,6 @@ describe('Upload plugin bootstrap function', () => {
|
||||
expect(setStore).toHaveBeenCalledWith({
|
||||
value: {
|
||||
sizeOptimization: true,
|
||||
videoPreview: true,
|
||||
responsiveDimensions: true,
|
||||
},
|
||||
});
|
||||
|
||||
@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user