Skip to content

Commit

Permalink
Access private properties in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed May 15, 2024
1 parent 479d519 commit 65598ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/test-components/GitPanel.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ describe('GitPanel', () => {

// @ts-expect-error turn off set status
props.model._setStatus = jest.fn(() => {
props.model._statusChanged.emit(props.model._status);
props.model['_statusChanged'].emit(props.model['_status']);
});

render(<GitPanel {...props} />);
Expand Down

0 comments on commit 65598ca

Please sign in to comment.