@@ -26,7 +26,6 @@ import {
2626 scansLimitReachedErrorMessage ,
2727} from '../../codewhisperer/models/constants'
2828import * as model from '../../codewhisperer/models/model'
29- import { CodewhispererSecurityScan } from '../../shared/telemetry/telemetry.gen'
3029import * as errors from '../../shared/errors'
3130import * as timeoutUtils from '../../shared/utilities/timeoutUtils'
3231import { SecurityIssuesTree } from '../../codewhisperer'
@@ -232,7 +231,7 @@ describe('startSecurityScan', function () {
232231 codewhispererCodeScanIssuesWithFixes : 0 ,
233232 codewhispererCodeScanScope : 'PROJECT' ,
234233 passive : false ,
235- } as CodewhispererSecurityScan )
234+ } )
236235 } )
237236
238237 it ( 'Should cancel a scan if a newer one has started' , async function ( ) {
@@ -261,7 +260,7 @@ describe('startSecurityScan', function () {
261260 result : 'Cancelled' ,
262261 reasonDesc : 'Security scan stopped by user.' ,
263262 reason : 'DefaultError' ,
264- } as unknown as CodewhispererSecurityScan ,
263+ } ,
265264 {
266265 result : 'Succeeded' ,
267266 } ,
@@ -323,7 +322,7 @@ describe('startSecurityScan', function () {
323322 reason : 'CodeScanJobFailedError' ,
324323 reasonDesc : 'CodeScanJobFailedError: Security scan failed.' ,
325324 passive : false ,
326- } as unknown as CodewhispererSecurityScan )
325+ } )
327326 } )
328327
329328 it ( 'Should show notification when throttled for project scans' , async function ( ) {
@@ -353,7 +352,7 @@ describe('startSecurityScan', function () {
353352 reason : 'ThrottlingException' ,
354353 reasonDesc : `ThrottlingException: Maximum com.amazon.aws.codewhisperer.StartCodeAnalysis reached for this month.` ,
355354 passive : false ,
356- } as unknown as CodewhispererSecurityScan )
355+ } )
357356 } )
358357
359358 it ( 'Should set monthly quota exceeded when throttled for auto file scans' , async function ( ) {
@@ -385,6 +384,6 @@ describe('startSecurityScan', function () {
385384 reason : 'ThrottlingException' ,
386385 reasonDesc : 'ThrottlingException: Maximum file scans count reached for this month' ,
387386 passive : true ,
388- } as unknown as CodewhispererSecurityScan )
387+ } )
389388 } )
390389} )
0 commit comments