Skip to content

Commit

Permalink
remove arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hweinstock committed Nov 8, 2024
1 parent 020cc60 commit 2abd7a0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ import { Command, MessageType } from '../../../applicationcomposer/types'

// eslint-disable-next-line aws-toolkits/no-only-in-tests
describe.only('generateResourceHandler', function () {
afterEach(() => {
sinon.restore()
})
for (const _ of Array.from({ length: 1000 }, (i) => i)) {
it('amazon q is not installed', async () => {
it('amazon q is not installed', async function () {
this.retries(3)
const panel = await createTemplate()
const postMessageSpy = sinon.spy(panel.webview, 'postMessage')
const context = await createWebviewContext({
Expand All @@ -33,7 +31,7 @@ describe.only('generateResourceHandler', function () {
)
assert.ok(postMessageSpy.calledOnce)
assert.deepStrictEqual(postMessageSpy.getCall(0).args[0].isSuccess, false)
sinon.restore()
postMessageSpy.restore()
})
}
})

0 comments on commit 2abd7a0

Please sign in to comment.