Skip to content

Commit 93c0b0f

Browse files
committed
fix: sonar
1 parent 7697015 commit 93c0b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/easy-test/src/mock/Mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class Mocks {
4747
}),
4848
};
4949

50-
static getArg = <T>(mock: unknown, call = 0, arg = 0): T | undefined => {
50+
static readonly getArg = <T>(mock: unknown, call = 0, arg = 0): T | undefined => {
5151
if (!isJestMock(mock)) throw new Error('Function provided is not a Jest mock');
5252
return mock.mock.calls[call]?.[arg] as T;
5353
};

0 commit comments

Comments
 (0)