Skip to content

Commit

Permalink
test: 补充单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
xyy94813 committed Dec 9, 2023
1 parent 343cdf7 commit 0a822ec
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,10 @@ describe('AMapRangingTool', () => {
expect(mockInstance.off).toBeCalledWith('removenode', onNodeRemoved);
expect(mockInstance.off).toBeCalledWith('end', onEnd);
});

test('disabled component', () => {
render(<AMapRangingTool disabled />);

expect(mockInstance.turnOff).toBeCalled();
});
});

0 comments on commit 0a822ec

Please sign in to comment.