From 48dea5337cfeb2f7d26d71738ffb5d48d050a5c1 Mon Sep 17 00:00:00 2001 From: ziqiang <1694392889@qq.com> Date: Thu, 30 Nov 2023 09:56:15 +0800 Subject: [PATCH] feat: revert test code --- test/fusion.v3.spec.ts | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/test/fusion.v3.spec.ts b/test/fusion.v3.spec.ts index 0663c09..5f89817 100644 --- a/test/fusion.v3.spec.ts +++ b/test/fusion.v3.spec.ts @@ -15,26 +15,26 @@ describe('full pipeline', () => { const spaceId = process.env.SPACE_ID as string; const viewId = process.env.VIEW_ID as string; - // const apitable = new Vika({ - // token, - // host, - // }); - // - // const datasheet = apitable.datasheet(datasheetId); - // - // let records: IRecord[]; - // let spaceIds: string[]; - // let nodes: INodeItem[]; - // let createdDatasheetId: string; - // let createdFieldId: string; - // - // it('get records', async () => { - // const allRecords = await datasheet.records.query({ - // isV3: true - // }); - // const allRecords2 = await datasheet.records.query(); - // console.log(' see result', allRecords); - // console.log(' see result2', allRecords2); - // }); + const apitable = new Vika({ + token, + host, + }); + + const datasheet = apitable.datasheet(datasheetId); + + let records: IRecord[]; + let spaceIds: string[]; + let nodes: INodeItem[]; + let createdDatasheetId: string; + let createdFieldId: string; + + it('get records', async () => { + const allRecords = await datasheet.records.query({ + isV3: true + }); + const allRecords2 = await datasheet.records.query(); + console.log(' see result', allRecords); + console.log(' see result2', allRecords2); + }); }); \ No newline at end of file