Skip to content

Commit b98cb99

Browse files
committed
Fix references in unit tests
1 parent 7e7b6c2 commit b98cb99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/amazonq/test/unit/codewhisperer/service/recommendationHandler.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('recommendationHandler', function () {
4747
mockClient.listRecommendations.resolves({})
4848
mockClient.generateRecommendations.resolves({})
4949
RecommendationHandler.instance.clearRecommendations()
50-
sinon.stub(AuthUtil.instance, 'startUrl').value(testStartUrl)
50+
sinon.stub(AuthUtil.instance.connection!, 'startUrl').value(testStartUrl)
5151
})
5252

5353
afterEach(function () {

packages/amazonq/test/unit/codewhisperer/tracker/codewhispererTracker.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('codewhispererTracker', function () {
8383
describe('emitTelemetryOnSuggestion', function () {
8484
it('Should call recordCodewhispererUserModification with suggestion event', async function () {
8585
const testStartUrl = 'testStartUrl'
86-
sinon.stub(AuthUtil.instance.connection, 'startUrl').value(testStartUrl)
86+
sinon.stub(AuthUtil.instance.connection!, 'startUrl').value(testStartUrl)
8787
const suggestion = createAcceptedSuggestionEntry()
8888
const assertTelemetry = assertTelemetryCurried('codewhisperer_userModification')
8989
await CodeWhispererTracker.getTracker().emitTelemetryOnSuggestion(suggestion)

0 commit comments

Comments
 (0)