From 38eb3e3fae1ddab7fc0e9df1ec3c302cb4d68461 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 11 Nov 2023 12:38:38 +0530 Subject: [PATCH] test: correction in test - pass viewid --- packages/nocodb/tests/unit/rest/tests/groupby.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nocodb/tests/unit/rest/tests/groupby.test.ts b/packages/nocodb/tests/unit/rest/tests/groupby.test.ts index b4bf578603..8c61ece1ca 100644 --- a/packages/nocodb/tests/unit/rest/tests/groupby.test.ts +++ b/packages/nocodb/tests/unit/rest/tests/groupby.test.ts @@ -7,7 +7,7 @@ import { listRow } from '../../factory/row'; import { getTable } from '../../factory/table'; import { getView, updateView } from '../../factory/view'; import init from '../../init'; -import type { Column, Model, Base, View } from '../../../../src/models'; +import type { Base, Column, Model, View } from '../../../../src/models'; import 'mocha'; function groupByTests() { @@ -226,7 +226,9 @@ function groupByTests() { ], }); 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) .query({ column_name: _lengthColumn.column_name,