Skip to content

Commit

Permalink
Merge pull request #27 from vikadata/merge-iframe
Browse files Browse the repository at this point in the history
Merge iframe
  • Loading branch information
JaneSu authored Nov 21, 2023
2 parents 9de181f + 655d698 commit 9dffafd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('full pipeline', () => {
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,
Expand Down Expand Up @@ -102,9 +102,9 @@ describe('full pipeline', () => {

expect(result.success).toBeTruthy();
expect(result.data!.records.length).toEqual(recordsToUpdate.length);
const all = await datasheet.records.query();
// const all = await datasheet.records.query();
// The length should be the same as the original datasheet.
expect(all.data!.records.length).toEqual(records.length);
// expect(all.data!.records.length).toEqual(records.length);
});

it('upload buffer attachment', async () => {
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('full pipeline', () => {
expect(result.success).toBeTruthy();
spaceIds = result.data!.spaces.map(item => item.id);
});
// nodes list
// nodes list
it('get node list', async () => {
const result = await apitable.nodes.list({ spaceId: spaceIds[0] });
expect(result.success).toBeTruthy();
Expand All @@ -147,7 +147,7 @@ describe('full pipeline', () => {
expect(result.success).toBeTruthy();
expect(result.data?.id).toEqual(firstNode.id);
});
// nodes search
// nodes search
it('search node', async () => {
const firstNode = nodes[0];
const result = await apitable.nodes.search({ spaceId: spaceIds[0], type: firstNode.type, query: firstNode.name });
Expand Down

0 comments on commit 9dffafd

Please sign in to comment.