Skip to content

Commit 5796933

Browse files
committed
Revert "onAcceptance.test.ts"
This reverts commit 778012d.
1 parent 25b6fb2 commit 5796933

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/amazonq/test/unit/codewhisperer/commands/onAcceptance.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ import { resetCodeWhispererGlobalVariables, createMockTextEditor } from 'aws-cor
1818
import { assertTelemetryCurried } from 'aws-core-vscode/test'
1919

2020
describe('onAcceptance', function () {
21-
const session = CodeWhispererSessionState.instance.getSession()
2221
describe('onAcceptance', function () {
2322
beforeEach(async function () {
23+
const session = CodeWhispererSessionState.instance.getSession()
2424
await resetCodeWhispererGlobalVariables()
2525
session.reset()
2626
})
2727

2828
afterEach(function () {
29+
const session = CodeWhispererSessionState.instance.getSession()
2930
sinon.restore()
3031
session.reset()
3132
})
@@ -71,6 +72,7 @@ describe('onAcceptance', function () {
7172
})
7273

7374
it('Should report telemetry that records this user decision event', async function () {
75+
const session = CodeWhispererSessionState.instance.getSession()
7476
const testStartUrl = 'testStartUrl'
7577
sinon.stub(AuthUtil.instance, 'startUrl').value(testStartUrl)
7678
const mockEditor = createMockTextEditor()

0 commit comments

Comments
 (0)