File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,10 @@ describe('lib/main', function () {
154154 return
155155 }
156156 execFileSync ( 'npm' , [ 'ci' ] , { cwd : sourceDirectoryForTest } )
157+ } )
158+
159+ beforeEach ( ( ) => {
160+ program = Object . assign ( { } , originalProgram ) // clone
157161
158162 // for sdk v3
159163 mockLambdaClient . reset ( )
@@ -184,10 +188,6 @@ describe('lib/main', function () {
184188 mockS3Client . on ( PutObjectCommand ) . resolves ( { } )
185189 } )
186190
187- beforeEach ( ( ) => {
188- program = Object . assign ( { } , originalProgram ) // clone
189- } )
190-
191191 it ( 'version should be set' , ( ) => {
192192 assert . equal ( lambda . version , '1.3.0' )
193193 } )
@@ -1361,8 +1361,6 @@ describe('lib/main', function () {
13611361
13621362 describe ( '_listEventSourceMappings' , ( ) => {
13631363 it ( 'simple test with mock' , ( ) => {
1364- mockLambdaClient . reset ( )
1365- mockLambdaClient . on ( ListEventSourceMappingsCommand ) . resolves ( lambdaMockSettings . listEventSourceMappings )
13661364
13671365 return lambda . _listEventSourceMappings (
13681366 lambdaClient ,
You can’t perform that action at this time.
0 commit comments