Skip to content

Commit 6fd996b

Browse files
committed
[fix] Lark API compatibility in Test cases
1 parent 3fa3b71 commit 6fd996b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ describe('MobX Lark SDK', async () => {
9797

9898
expect(first_level_block_ids.length === 2);
9999
expect(blocks.length === 2);
100-
expect(blocks[0].block_type === BlockType.heading1);
101-
expect(blocks[1].block_type === BlockType.text);
100+
expect(blocks.some(({ block_type }) => block_type === BlockType.heading1));
101+
expect(blocks.some(({ block_type }) => block_type === BlockType.text));
102102
});
103103

104104
const blocks = await it('should get blocks of a Document', async expect => {

0 commit comments

Comments
 (0)