mirror of
https://github.com/strapi/strapi.git
synced 2025-11-26 07:01:14 +00:00
chore(upload): pr feedback
This commit is contained in:
parent
4f7f672a7a
commit
892f9963e8
@ -1,7 +1,5 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { sample } = require('lodash');
|
|
||||||
|
|
||||||
// Helpers.
|
// Helpers.
|
||||||
const { createTestBuilder } = require('../../../../../test/helpers/builder');
|
const { createTestBuilder } = require('../../../../../test/helpers/builder');
|
||||||
const { createStrapiInstance } = require('../../../../../test/helpers/strapi');
|
const { createStrapiInstance } = require('../../../../../test/helpers/strapi');
|
||||||
@ -130,7 +128,7 @@ describe('Configure Media Library View', () => {
|
|||||||
test('Successfully update the ML view configuration', async () => {
|
test('Successfully update the ML view configuration', async () => {
|
||||||
const config = {
|
const config = {
|
||||||
pageSize: 100,
|
pageSize: 100,
|
||||||
sort: sample(ALLOWED_SORT_STRINGS),
|
sort: ALLOWED_SORT_STRINGS[1],
|
||||||
};
|
};
|
||||||
const updateRes = await requests.admin({
|
const updateRes = await requests.admin({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user