Skip to content

Commit 7843a9f

Browse files
committed
Fix linter
1 parent 8ac7e9b commit 7843a9f

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ describe('RegionProfileManager', async function () {
257257

258258
await assert.rejects(
259259
async () => {
260-
await sut.createQClient({
260+
await regionProfileManager.createQClient({
261261
name: 'foo',
262262
region: 'ap-east-1',
263263
arn: 'arn',
@@ -269,7 +269,7 @@ describe('RegionProfileManager', async function () {
269269

270270
await assert.rejects(
271271
async () => {
272-
await sut.createQClient({
272+
await regionProfileManager.createQClient({
273273
name: 'foo',
274274
region: 'unknown-somewhere',
275275
arn: 'arn',

packages/core/src/codewhisperer/region/regionProfileManager.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ export class RegionProfileManager {
126126
return this.cache.getResource()
127127
}
128128

129-
async getProfiles(): Promise<RegionProfile[]> {
130-
return this.cache.getResource()
131-
}
132-
133129
async listRegionProfile(): Promise<RegionProfile[]> {
134130
this._profiles = []
135131

packages/core/src/test/amazonq/customizationUtil.test.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,12 @@ import { createTestAuthUtil } from '../testAuthUtil'
2626
const enterpriseSsoStartUrl = 'https://enterprise.awsapps.com/start'
2727

2828
describe('customizationProvider', function () {
29-
let auth: ReturnType<typeof createTestAuth>
30-
let ssoConn: SsoConnection
3129
let regionProfileManager: RegionProfileManager
3230

3331
beforeEach(async () => {
34-
auth = createTestAuth(globals.globalState)
35-
ssoConn = await auth.createInvalidSsoConnection(
36-
createSsoProfile({ startUrl: enterpriseSsoStartUrl, scopes: amazonQScopes })
37-
)
38-
39-
regionProfileManager = new RegionProfileManager(() => ssoConn)
32+
createTestAuth(globals.globalState)
33+
await createTestAuthUtil()
34+
regionProfileManager = new RegionProfileManager(AuthUtil.instance)
4035
})
4136

4237
afterEach(() => {

0 commit comments

Comments
 (0)