Skip to content

Commit

Permalink
feat: revert test
Browse files Browse the repository at this point in the history
  • Loading branch information
ziqiangai committed Nov 30, 2023
1 parent 7f42693 commit 487f34e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
40 changes: 40 additions & 0 deletions test/fusion.v3.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import {IDatasheetCreateRo, INodeItem, IRecord, Vika} from "../lib";
import {Buffer} from "buffer";
import fs from "fs";
import path from "path";
import {IAddOpenSingleTextFieldProperty} from "../lib/interface/field.create.property";
import {IDatasheetFieldCreateRo} from "../lib/interface/datasheet.field.create.ro";
import {EmbedLinkTheme, PermissionType} from "../lib/interface/embed.link";

jest.setTimeout(300000);
describe('full pipeline', () => {
const host = `https://integration.vika.ltd/fusion/v1`;
const token = 'uskM9c6MzfkHMeCJVipM1zv';
const datasheetId = 'dstVrj2y9AMx1YJ5Jy';
const folderId = process.env.FOLDER_ID as string;
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);
});

});
40 changes: 0 additions & 40 deletions test/xxx

This file was deleted.

0 comments on commit 487f34e

Please sign in to comment.