Browse Source

test: correction in test - pass viewid

pull/6941/head
Pranav C 1 year ago
parent
commit
38eb3e3fae
  1. 6
      packages/nocodb/tests/unit/rest/tests/groupby.test.ts

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

@ -7,7 +7,7 @@ import { listRow } from '../../factory/row';
import { getTable } from '../../factory/table'; import { getTable } from '../../factory/table';
import { getView, updateView } from '../../factory/view'; import { getView, updateView } from '../../factory/view';
import init from '../../init'; import init from '../../init';
import type { Column, Model, Base, View } from '../../../../src/models'; import type { Base, Column, Model, View } from '../../../../src/models';
import 'mocha'; import 'mocha';
function groupByTests() { function groupByTests() {
@ -226,7 +226,9 @@ function groupByTests() {
], ],
}); });
const response = await request(context.app) const response = await request(context.app)
.get(`/api/v1/db/data/noco/${sakilaProject.id}/${filmTable.id}/groupby`) .get(
`/api/v1/db/data/noco/${sakilaProject.id}/${filmTable.id}/views/${filmView.id}/groupby`,
)
.set('xc-auth', context.token) .set('xc-auth', context.token)
.query({ .query({
column_name: _lengthColumn.column_name, column_name: _lengthColumn.column_name,

Loading…
Cancel
Save