π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
skip audit log test for sqlite
Fendy Heryanto7e2f7645e4a1
diff --git a/packages/nocodb/tests/unit/rest/tests/dataApiV3/audit-log.test.ts b/packages/nocodb/tests/unit/rest/tests/dataApiV3/audit-log.test.tsindex b7f837c35b..db9b7b9598 100644--- a/packages/nocodb/tests/unit/rest/tests/dataApiV3/audit-log.test.ts+++ b/packages/nocodb/tests/unit/rest/tests/dataApiV3/audit-log.test.ts@@ -1,6 +1,6 @@/* eslint-disable @typescript-eslint/no-unused-vars */import { expect } from 'chai';-import { checkboxTypeMap, type ColumnType } from 'nocodb-sdk';+import { checkboxTypeMap, ClientType, type ColumnType } from 'nocodb-sdk';import {beforeEachAttachment,beforeEachCheckbox,@@ -12,7 +12,7 @@ import {import { ncAxios } from './ncAxios';import { getUsers } from './helpers';import type { ITestContext } from './helpers';-import type { Column, Model } from '../../../../../src/models';+import { Base, type Column, type Model } from '../../../../../src/models';import type { INcAxios } from './ncAxios';const API_VERSION = 'v3';@@ -70,6 +70,21 @@ describe('dataApiV3', () => {};it('audit log', async function () {+ const source = (+ await (+ await Base.get(+ {+ fk_workspace_id: testContext.context.fk_workspace_id,+ base_id: testContext.base.id,+ },+ testContext.base.id,+ )+ ).getSources()+ )[0];+ console.log(source)+ if(source.type === ClientType.SQLITE) {+ return;+ }const rsp = await ncAxiosPost({url: `${urlPrefix}/${table.id}/records`,body: newRecord,@@ -88,6 +103,7 @@ describe('dataApiV3', () => {row_id: expectedId,},});+expect(rsp2.body.list.length).to.greaterThan(0);await ncAxiosPatch({url: `${urlPrefix}/${table.id}/records`,