Skip to content

Commit ee1b846

Browse files
committed
Unit test fix
1 parent 361e75f commit ee1b846

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/amazonq/test/unit/codewhisperer/region/regionProfileManager.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ describe('RegionProfileManager', function () {
3636

3737
beforeEach(function () {
3838
regionProfileManager = new RegionProfileManager(AuthUtil.instance)
39-
// const authUtilStub = sinon.stub(AuthUtil.instance, 'isIdcConnection').returns(isSso)
4039
})
4140

4241
afterEach(function () {
@@ -101,6 +100,8 @@ describe('RegionProfileManager', function () {
101100

102101
describe(`client config`, function () {
103102
it(`no valid credential should throw`, async function () {
103+
AuthUtil.instance.logout()
104+
104105
assert.ok(!AuthUtil.instance.isConnected())
105106

106107
assert.throws(() => {

packages/amazonq/test/unit/codewhisperer/util/showSsoPrompt.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { resetCodeWhispererGlobalVariables } from 'aws-core-vscode/test'
1010
import { assertTelemetryCurried, getTestWindow, getTestLogger } from 'aws-core-vscode/test'
1111
import { AuthUtil, awsIdSignIn, showCodeWhispererConnectionPrompt } from 'aws-core-vscode/codewhisperer'
1212

13-
describe.only('showConnectionPrompt', function () {
13+
describe('showConnectionPrompt', function () {
1414
let isBuilderIdConnection: sinon.SinonStub
1515

1616
beforeEach(async function () {

0 commit comments

Comments
 (0)