Browse Source

test: corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/6489/head
Pranav C 1 year ago
parent
commit
fb94e785c1
  1. 6
      packages/nocodb/tests/unit/rest/tests/viewRow.test.ts

6
packages/nocodb/tests/unit/rest/tests/viewRow.test.ts

@ -940,7 +940,7 @@ function viewRowTests() {
.expect(200); .expect(200);
if ( if (
response.body.list[4]['first_name'] !== 'WILLIE' || response.body.list[4]['FirstName'] !== 'WILLIE' ||
parseInt(response.body.list[4]['count']) !== 2 parseInt(response.body.list[4]['count']) !== 2
) )
throw new Error('Wrong groupby'); throw new Error('Wrong groupby');
@ -986,13 +986,13 @@ function viewRowTests() {
.query({ .query({
fields: visibleColumns.map((c) => c.title), fields: visibleColumns.map((c) => c.title),
sort: sortInfo, sort: sortInfo,
column_name: firstNameColumn.column_name, column_name: firstNameColumn.title,
offset: 4, offset: 4,
}) })
.expect(200); .expect(200);
if ( if (
response.body.list[0]['first_name'] !== 'WILLIE' || response.body.list[0]['FirstName'] !== 'WILLIE' ||
parseInt(response.body.list[0]['count']) !== 2 parseInt(response.body.list[0]['count']) !== 2
) )
throw new Error('Wrong groupby'); throw new Error('Wrong groupby');

Loading…
Cancel
Save