Skip to content

Commit

Permalink
test: add test case for get live cell with cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyouxin committed Apr 3, 2023
1 parent c244cba commit 24e137e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ describe('FullOwnership', () => {
});
});

it('should get live cells with cursor', async () => {
await ownershipService.getLiveCells({ cursor: '3:0x1234' });
expect(backend.getLiveCellsByLocks).toBeCalledWith({
cursor: '0x1234',
locks: [scriptInfos[3].lock],
});
});

it('should get live cells with default change', async () => {
await ownershipService.getLiveCells({});
expect(backend.getLiveCellsByLocks).toBeCalledWith({
Expand Down

0 comments on commit 24e137e

Please sign in to comment.