Skip to content

Commit 65598ca

Browse files
committed
Access private properties in tests
1 parent 479d519 commit 65598ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__tests__/test-components/GitPanel.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ describe('GitPanel', () => {
178178

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

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

0 commit comments

Comments
 (0)