Skip to content

Commit 7ee2bd2

Browse files
committed
refactor
1 parent 490fe92 commit 7ee2bd2

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -154,24 +154,24 @@ describe('SecurityIssueTreeViewProvider', function () {
154154
}
155155
})
156156
})
157+
})
157158

158-
describe('IssueItem', function () {
159-
it('has issueWithFix context value for issues with suggested fix', function () {
160-
const issueItem = new IssueItem(
161-
'file/path',
162-
createCodeScanIssue({ suggestedFixes: [{ code: 'fixCode', description: 'fixDescription' }] })
163-
)
164-
assert.strictEqual(issueItem.contextValue, 'issueWithFix')
165-
})
159+
describe('IssueItem', function () {
160+
it('has issueWithFix context value for issues with suggested fix', function () {
161+
const issueItem = new IssueItem(
162+
'file/path',
163+
createCodeScanIssue({ suggestedFixes: [{ code: 'fixCode', description: 'fixDescription' }] })
164+
)
165+
assert.strictEqual(issueItem.contextValue, 'issueWithFix')
166+
})
166167

167-
it('has issueWithoutFix context value for issues without suggested fix', function () {
168-
const issueItem = new IssueItem('file/path', createCodeScanIssue({ suggestedFixes: [] }))
169-
assert.strictEqual(issueItem.contextValue, 'issueWithoutFix')
170-
})
168+
it('has issueWithoutFix context value for issues without suggested fix', function () {
169+
const issueItem = new IssueItem('file/path', createCodeScanIssue({ suggestedFixes: [] }))
170+
assert.strictEqual(issueItem.contextValue, 'issueWithoutFix')
171+
})
171172

172-
it('has issueWithFixDisabled context value for SAS findings', function () {
173-
const issueItem = new IssueItem('file/path', createCodeScanIssue({ ruleId: sasRuleId }))
174-
assert.strictEqual(issueItem.contextValue, 'issueWithFixDisabled')
175-
})
173+
it('has issueWithFixDisabled context value for SAS findings', function () {
174+
const issueItem = new IssueItem('file/path', createCodeScanIssue({ ruleId: sasRuleId }))
175+
assert.strictEqual(issueItem.contextValue, 'issueWithFixDisabled')
176176
})
177177
})

0 commit comments

Comments
 (0)