@@ -39,7 +39,7 @@ expect.extend({
39
39
} ) ;
40
40
41
41
describe ( "toReceiveCommandTimes" , ( ) => {
42
- it ( "should pass with 0 received commands" , async ( ) => {
42
+ it ( "should pass with 0 received commands" , ( ) => {
43
43
const s3Mock = mockClient ( S3Client ) ;
44
44
expect ( s3Mock ) . toReceiveCommandTimes ( PutObjectCommand , 0 ) ;
45
45
} ) ;
@@ -67,7 +67,7 @@ describe("toReceiveCommandTimes", () => {
67
67
} ) ;
68
68
69
69
describe ( "not" , ( ) => {
70
- it ( "should pass when not called" , async ( ) => {
70
+ it ( "should pass when not called" , ( ) => {
71
71
const s3Mock = mockClient ( S3Client ) ;
72
72
expect ( s3Mock ) . not . toReceiveCommandTimes ( PutObjectCommand , 1 ) ;
73
73
} ) ;
@@ -89,7 +89,7 @@ describe("toReceiveCommandTimes", () => {
89
89
} ) ;
90
90
91
91
describe ( "toHaveReceivedCommandTimes" , ( ) => {
92
- it ( "should pass with 0 received commands" , async ( ) => {
92
+ it ( "should pass with 0 received commands" , ( ) => {
93
93
const s3Mock = mockClient ( S3Client ) ;
94
94
expect ( s3Mock ) . toHaveReceivedCommandTimes ( PutObjectCommand , 0 ) ;
95
95
} ) ;
@@ -117,7 +117,7 @@ describe("toHaveReceivedCommandTimes", () => {
117
117
} ) ;
118
118
119
119
describe ( "not" , ( ) => {
120
- it ( "should pass when not called" , async ( ) => {
120
+ it ( "should pass when not called" , ( ) => {
121
121
const s3Mock = mockClient ( S3Client ) ;
122
122
expect ( s3Mock ) . not . toHaveReceivedCommandTimes ( PutObjectCommand , 1 ) ;
123
123
} ) ;
@@ -146,7 +146,7 @@ describe("toReceiveCommandOnce", () => {
146
146
expect ( s3Mock ) . toReceiveCommandOnce ( GetObjectCommand ) ;
147
147
} ) ;
148
148
149
- it . fails ( "should fail when not called" , async ( ) => {
149
+ it . fails ( "should fail when not called" , ( ) => {
150
150
const s3Mock = mockClient ( S3Client ) ;
151
151
expect ( s3Mock ) . toReceiveCommandOnce ( GetObjectCommand ) ;
152
152
} ) ;
@@ -169,7 +169,7 @@ describe("toReceiveCommandOnce", () => {
169
169
} ) ;
170
170
171
171
describe ( "not" , ( ) => {
172
- it ( "should pass when not called" , async ( ) => {
172
+ it ( "should pass when not called" , ( ) => {
173
173
const s3Mock = mockClient ( S3Client ) ;
174
174
expect ( s3Mock ) . not . toReceiveCommandOnce ( GetObjectCommand ) ;
175
175
} ) ;
@@ -205,7 +205,7 @@ describe("toHaveReceivedCommandOnce", () => {
205
205
expect ( s3Mock ) . toHaveReceivedCommandOnce ( GetObjectCommand ) ;
206
206
} ) ;
207
207
208
- it . fails ( "should fail when not called" , async ( ) => {
208
+ it . fails ( "should fail when not called" , ( ) => {
209
209
const s3Mock = mockClient ( S3Client ) ;
210
210
expect ( s3Mock ) . toHaveReceivedCommandOnce ( GetObjectCommand ) ;
211
211
} ) ;
@@ -228,7 +228,7 @@ describe("toHaveReceivedCommandOnce", () => {
228
228
} ) ;
229
229
230
230
describe ( "not" , ( ) => {
231
- it ( "should pass when not called" , async ( ) => {
231
+ it ( "should pass when not called" , ( ) => {
232
232
const s3Mock = mockClient ( S3Client ) ;
233
233
expect ( s3Mock ) . not . toHaveReceivedCommandOnce ( GetObjectCommand ) ;
234
234
} ) ;
@@ -258,7 +258,7 @@ describe("toHaveReceivedCommandOnce", () => {
258
258
} ) ;
259
259
260
260
describe ( "toReceiveCommand" , ( ) => {
261
- it . fails ( "should fail when no command received" , async ( ) => {
261
+ it . fails ( "should fail when no command received" , ( ) => {
262
262
const s3Mock = mockClient ( S3Client ) ;
263
263
expect ( s3Mock ) . toReceiveCommand ( GetObjectCommand ) ;
264
264
} ) ;
@@ -286,7 +286,7 @@ describe("toReceiveCommand", () => {
286
286
} ) ;
287
287
288
288
describe ( "not" , ( ) => {
289
- it ( "should pass when no command received" , async ( ) => {
289
+ it ( "should pass when no command received" , ( ) => {
290
290
const s3Mock = mockClient ( S3Client ) ;
291
291
expect ( s3Mock ) . not . toReceiveCommand ( GetObjectCommand ) ;
292
292
} ) ;
@@ -316,7 +316,7 @@ describe("toReceiveCommand", () => {
316
316
} ) ;
317
317
318
318
describe ( "toHaveReceivedCommand" , ( ) => {
319
- it . fails ( "should fail when no command received" , async ( ) => {
319
+ it . fails ( "should fail when no command received" , ( ) => {
320
320
const s3Mock = mockClient ( S3Client ) ;
321
321
expect ( s3Mock ) . toHaveReceivedCommand ( GetObjectCommand ) ;
322
322
} ) ;
@@ -344,7 +344,7 @@ describe("toHaveReceivedCommand", () => {
344
344
} ) ;
345
345
346
346
describe ( "not" , ( ) => {
347
- it ( "should pass when no command received" , async ( ) => {
347
+ it ( "should pass when no command received" , ( ) => {
348
348
const s3Mock = mockClient ( S3Client ) ;
349
349
expect ( s3Mock ) . not . toHaveReceivedCommand ( GetObjectCommand ) ;
350
350
} ) ;
@@ -471,7 +471,7 @@ describe("toReceiveCommandWith", () => {
471
471
} ) ;
472
472
473
473
describe ( "not" , ( ) => {
474
- it ( "shoud pass when never called" , async ( ) => {
474
+ it ( "shoud pass when never called" , ( ) => {
475
475
const s3Mock = mockClient ( S3Client ) ;
476
476
expect ( s3Mock ) . not . toReceiveCommandWith ( PutObjectCommand , {
477
477
Bucket : "foo" ,
@@ -623,7 +623,7 @@ describe("toHaveReceivedCommandWith", () => {
623
623
} ) ;
624
624
625
625
describe ( "not" , ( ) => {
626
- it ( "shoud pass when never called" , async ( ) => {
626
+ it ( "shoud pass when never called" , ( ) => {
627
627
const s3Mock = mockClient ( S3Client ) ;
628
628
expect ( s3Mock ) . not . toHaveReceivedCommandWith ( PutObjectCommand , {
629
629
Bucket : "foo" ,
@@ -975,7 +975,7 @@ describe("toReceiveLastCommandWith", () => {
975
975
} ) ;
976
976
} ) ;
977
977
978
- it . fails ( "should fail when not called at all" , async ( ) => {
978
+ it . fails ( "should fail when not called at all" , ( ) => {
979
979
const s3Mock = mockClient ( S3Client ) ;
980
980
expect ( s3Mock ) . toReceiveLastCommandWith ( GetObjectCommand , {
981
981
Bucket : "foo" ,
@@ -984,7 +984,7 @@ describe("toReceiveLastCommandWith", () => {
984
984
} ) ;
985
985
986
986
describe ( "not" , ( ) => {
987
- it ( "should pass when not called" , async ( ) => {
987
+ it ( "should pass when not called" , ( ) => {
988
988
const s3Mock = mockClient ( S3Client ) ;
989
989
expect ( s3Mock ) . not . toReceiveLastCommandWith ( GetObjectCommand , {
990
990
Bucket : "foo" ,
@@ -1106,7 +1106,7 @@ describe("toHaveReceivedLastCommandWith", () => {
1106
1106
} ) ;
1107
1107
} ) ;
1108
1108
1109
- it . fails ( "should fail when not called at all" , async ( ) => {
1109
+ it . fails ( "should fail when not called at all" , ( ) => {
1110
1110
const s3Mock = mockClient ( S3Client ) ;
1111
1111
expect ( s3Mock ) . toHaveReceivedLastCommandWith ( GetObjectCommand , {
1112
1112
Bucket : "foo" ,
@@ -1115,7 +1115,7 @@ describe("toHaveReceivedLastCommandWith", () => {
1115
1115
} ) ;
1116
1116
1117
1117
describe ( "not" , ( ) => {
1118
- it ( "should pass when not called" , async ( ) => {
1118
+ it ( "should pass when not called" , ( ) => {
1119
1119
const s3Mock = mockClient ( S3Client ) ;
1120
1120
expect ( s3Mock ) . not . toHaveReceivedLastCommandWith ( GetObjectCommand , {
1121
1121
Bucket : "foo" ,
0 commit comments