Skip to content

Commit dbe4207

Browse files
committed
debug
1 parent a6ba3b5 commit dbe4207

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/main.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)