@@ -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