π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
address feedback
Fendy Heryanto63b2a7ec4832
diff --git a/packages/nocodb/tests/unit/rest/tests/dataAPIsV3.test.ts b/packages/nocodb/tests/unit/rest/tests/dataAPIsV3.test.tsindex a6d44cbc2f..cce309293c 100644--- a/packages/nocodb/tests/unit/rest/tests/dataAPIsV3.test.ts+++ b/packages/nocodb/tests/unit/rest/tests/dataAPIsV3.test.ts@@ -690,7 +690,9 @@ export default function (API_VERSION: 'v2' | 'v3') {expect(verifyColumnsInRsp(rsp.body.list[0], columns)).to.equal(true);const filteredArray = rsp.body.list.map((r: any) => r.SingleLineText);- expect(filteredArray).to.deep.equal(filteredArray.fill('Afghanistan'));+ expect(filteredArray).to.deep.equal(+ Array(filteredArray.length).fill('Afghanistan'),+ );});it('List: filter, multiple', async function () {@@ -707,7 +709,7 @@ export default function (API_VERSION: 'v2' | 'v3') {(r: any) => r.SingleLineText + ' ' + r.MultiLineText,);expect(filteredArray).to.deep.equal(- filteredArray.fill('Afghanistan Allahabad, India'),+ Array(filteredArray.length).fill('Afghanistan Allahabad, India'),);});@@ -837,7 +839,9 @@ export default function (API_VERSION: 'v2' | 'v3') {),).to.equal(true);const filteredArray = rsp.body.list.map((r) => r.SingleLineText);- expect(filteredArray).to.deep.equal(filteredArray.fill('Afghanistan'));+ expect(filteredArray).to.deep.equal(+ Array(filteredArray.length).fill('Afghanistan'),+ );await updateView(context, {table,@@ -982,7 +986,7 @@ export default function (API_VERSION: 'v2' | 'v3') {);const filteredArray = rsp.body.list.map((r) => r['Phone']);expect(filteredArray).to.deep.equal(- filteredArray.fill('1-541-754-3010'),+ Array(filteredArray.length).fill('1-541-754-3010'),);});@@ -1213,11 +1217,6 @@ export default function (API_VERSION: 'v2' | 'v3') {body: { ...newRecord, Id: 300 },status: 400,});- // Invalid data - number instead of string- // await ncAxiosPost({- // body: { ...newRecord, SingleLineText: 300 },- // status: 400,- // });});// TBD : default value handling@@ -3736,6 +3735,7 @@ export default function (API_VERSION: 'v2' | 'v3') {expect(verifyColumnsInRsp(rsp.body.list[0], columns)).to.equal(true);const filteredArray = rsp.body.list.map((r) => r.userFieldSingle);+ // FIXME: to have correct Array(filteredArray.length).fill comparisonexpect(filteredArray).to.deep.equal(filteredArray.fill(userList[2]));});