@@ -23,7 +23,7 @@ interface AliasMatcher<R> {
23
23
toReceiveNthCommandWith : BaseMatcher < R > [ 'toHaveReceivedNthCommandWith' ] ;
24
24
}
25
25
26
- type AwsCommandConstructur <
26
+ type AwsCommandConstructor <
27
27
Input extends object ,
28
28
Output extends MetadataBearer ,
29
29
> = new ( input : Input ) => AwsCommand < Input , Output > ;
@@ -37,53 +37,53 @@ interface BaseMatcher<R> {
37
37
toHaveReceivedAnyCommand ( ) : R ;
38
38
39
39
toHaveReceivedCommand < Input extends object , Output extends MetadataBearer > (
40
- command : AwsCommandConstructur < Input , Output >
40
+ command : AwsCommandConstructor < Input , Output >
41
41
) : R ;
42
42
43
43
toHaveReceivedCommandExactlyOnceWith <
44
44
Input extends object ,
45
45
Output extends MetadataBearer ,
46
46
> (
47
- command : AwsCommandConstructur < Input , Output > ,
47
+ command : AwsCommandConstructor < Input , Output > ,
48
48
input : Partial < Input >
49
49
) : R ;
50
50
51
51
toHaveReceivedCommandOnce <
52
52
Input extends object ,
53
53
Output extends MetadataBearer ,
54
54
> (
55
- command : AwsCommandConstructur < Input , Output >
55
+ command : AwsCommandConstructor < Input , Output >
56
56
) : R ;
57
57
58
58
toHaveReceivedCommandTimes <
59
59
Input extends object ,
60
60
Output extends MetadataBearer ,
61
61
> (
62
- command : AwsCommandConstructur < Input , Output > ,
62
+ command : AwsCommandConstructor < Input , Output > ,
63
63
times : number
64
64
) : R ;
65
65
66
66
toHaveReceivedCommandWith <
67
67
Input extends object ,
68
68
Output extends MetadataBearer ,
69
69
> (
70
- command : AwsCommandConstructur < Input , Output > ,
70
+ command : AwsCommandConstructor < Input , Output > ,
71
71
input : Partial < Input >
72
72
) : R ;
73
73
74
74
toHaveReceivedLastCommandWith <
75
75
Input extends object ,
76
76
Output extends MetadataBearer ,
77
77
> (
78
- command : AwsCommandConstructur < Input , Output > ,
78
+ command : AwsCommandConstructor < Input , Output > ,
79
79
input : Partial < Input >
80
80
) : R ;
81
81
82
82
toHaveReceivedNthCommandWith <
83
83
Input extends object ,
84
84
Output extends MetadataBearer ,
85
85
> (
86
- command : AwsCommandConstructur < Input , Output > ,
86
+ command : AwsCommandConstructor < Input , Output > ,
87
87
times : number ,
88
88
input : Partial < Input >
89
89
) : R ;
@@ -94,7 +94,7 @@ type CustomMatcher<R = unknown> = AliasMatcher<R> & BaseMatcher<R>;
94
94
function formatCalls < Input extends object , Output extends MetadataBearer > (
95
95
context : MatcherState ,
96
96
client : AwsStub < Input , Output , unknown > ,
97
- command : AwsCommandConstructur < Input , Output > | undefined ,
97
+ command : AwsCommandConstructor < Input , Output > | undefined ,
98
98
expectedCall : Record < string , unknown > | undefined ,
99
99
message : string ,
100
100
) : string {
@@ -134,7 +134,7 @@ function formatCalls<Input extends object, Output extends MetadataBearer>(
134
134
function toHaveReceivedCommandTimes < Input extends object , Output extends MetadataBearer > (
135
135
this : MatcherState ,
136
136
client : AwsStub < Input , Output , unknown > ,
137
- command : AwsCommandConstructur < Input , Output > ,
137
+ command : AwsCommandConstructor < Input , Output > ,
138
138
times : number ,
139
139
) : ExpectationResult {
140
140
const { isNot } = this ;
@@ -156,7 +156,7 @@ const toReceiveCommandTimes = toHaveReceivedCommandTimes;
156
156
function toHaveReceivedCommandOnce < Input extends object , Output extends MetadataBearer > (
157
157
this : MatcherState ,
158
158
client : AwsStub < Input , Output , unknown > ,
159
- command : AwsCommandConstructur < Input , Output > ,
159
+ command : AwsCommandConstructor < Input , Output > ,
160
160
) : ExpectationResult {
161
161
const { isNot } = this ;
162
162
const callCount = client . commandCalls ( command ) . length ;
@@ -176,7 +176,7 @@ const toReceiveCommandOnce = toHaveReceivedCommandOnce;
176
176
function toHaveReceivedCommand < Input extends object , Output extends MetadataBearer > (
177
177
this : MatcherState ,
178
178
client : AwsStub < Input , Output , unknown > ,
179
- command : AwsCommandConstructur < Input , Output > ,
179
+ command : AwsCommandConstructor < Input , Output > ,
180
180
) : ExpectationResult {
181
181
const { isNot } = this ;
182
182
const callCount = client . commandCalls ( command ) . length ;
@@ -196,7 +196,7 @@ const toReceiveCommand = toHaveReceivedCommand;
196
196
function toHaveReceivedCommandWith < Input extends object , Output extends MetadataBearer > (
197
197
this : MatcherState ,
198
198
client : AwsStub < Input , Output , unknown > ,
199
- command : AwsCommandConstructur < Input , Output > ,
199
+ command : AwsCommandConstructor < Input , Output > ,
200
200
input : Record < string , unknown > ,
201
201
) : ExpectationResult {
202
202
const { isNot, utils } = this ;
@@ -221,7 +221,7 @@ const toReceiveCommandWith = toHaveReceivedCommandWith;
221
221
function toHaveReceivedCommandExactlyOnceWith < Input extends object , Output extends MetadataBearer > (
222
222
this : MatcherState ,
223
223
client : AwsStub < Input , Output , unknown > ,
224
- command : AwsCommandConstructur < Input , Output > ,
224
+ command : AwsCommandConstructor < Input , Output > ,
225
225
input : Record < string , unknown > ,
226
226
) : ExpectationResult {
227
227
const { isNot, utils } = this ;
@@ -248,7 +248,7 @@ const toReceiveCommandExactlyOnceWith = toHaveReceivedCommandExactlyOnceWith;
248
248
function toHaveReceivedNthCommandWith < Input extends object , Output extends MetadataBearer > (
249
249
this : MatcherState ,
250
250
client : AwsStub < Input , Output , unknown > ,
251
- command : AwsCommandConstructur < Input , Output > ,
251
+ command : AwsCommandConstructor < Input , Output > ,
252
252
times : number ,
253
253
input : Record < string , unknown > ,
254
254
) : ExpectationResult {
@@ -275,7 +275,7 @@ const toReceiveNthCommandWith = toHaveReceivedNthCommandWith;
275
275
function toHaveReceivedLastCommandWith < Input extends object , Output extends MetadataBearer > (
276
276
this : MatcherState ,
277
277
client : AwsStub < Input , Output , unknown > ,
278
- command : AwsCommandConstructur < Input , Output > ,
278
+ command : AwsCommandConstructor < Input , Output > ,
279
279
input : Record < string , unknown > ,
280
280
) : ExpectationResult {
281
281
const { isNot, utils } = this ;
0 commit comments