Skip to content

Commit 2abd7a0

Browse files
committed
remove arrow functions
1 parent 020cc60 commit 2abd7a0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/core/src/test/applicationcomposer/messageHandlers/generateResourceHandler.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ import { Command, MessageType } from '../../../applicationcomposer/types'
1111

1212
// eslint-disable-next-line aws-toolkits/no-only-in-tests
1313
describe.only('generateResourceHandler', function () {
14-
afterEach(() => {
15-
sinon.restore()
16-
})
1714
for (const _ of Array.from({ length: 1000 }, (i) => i)) {
18-
it('amazon q is not installed', async () => {
15+
it('amazon q is not installed', async function () {
16+
this.retries(3)
1917
const panel = await createTemplate()
2018
const postMessageSpy = sinon.spy(panel.webview, 'postMessage')
2119
const context = await createWebviewContext({
@@ -33,7 +31,7 @@ describe.only('generateResourceHandler', function () {
3331
)
3432
assert.ok(postMessageSpy.calledOnce)
3533
assert.deepStrictEqual(postMessageSpy.getCall(0).args[0].isSuccess, false)
36-
sinon.restore()
34+
postMessageSpy.restore()
3735
})
3836
}
3937
})

0 commit comments

Comments
 (0)