Skip to content

Commit f0bd1bb

Browse files
author
Kristiyan Ivanov
committed
Fixed tests flagged by Maria
1 parent bfe604c commit f0bd1bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

redisinsight/api/test/api/list/POST-databases-id-list.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
validateInvalidDataTestCase,
1111
validateApiCall, getMainCheckFn,
1212
} from '../deps';
13+
import { ListElementDestination } from 'src/modules/browser/list/dto';
1314
const { server, request, constants, rte } = deps;
1415

1516
// endpoint to test
@@ -193,6 +194,7 @@ describe('POST /databases/:databases/list', () => {
193194
data: {
194195
keyName: constants.getRandomString(),
195196
elements: [constants.TEST_LIST_ELEMENT_1],
197+
destination: ListElementDestination.Head,
196198
},
197199
statusCode: 201,
198200
},
@@ -202,6 +204,7 @@ describe('POST /databases/:databases/list', () => {
202204
data: {
203205
keyName: constants.getRandomString(),
204206
elements: [constants.getRandomString()],
207+
destination: ListElementDestination.Head,
205208
},
206209
statusCode: 403,
207210
responseBody: {
@@ -216,6 +219,7 @@ describe('POST /databases/:databases/list', () => {
216219
data: {
217220
keyName: constants.getRandomString(),
218221
elements: [constants.getRandomString()],
222+
destination: ListElementDestination.Head,
219223
},
220224
statusCode: 403,
221225
responseBody: {

0 commit comments

Comments
 (0)