import 'reflect-metadata' ; import { IMock , Mock , It } from 'typemoq' ; import { CombinedReportDataConverter } from 'axe-result-converter' ; import { CombinedReportParameters } from 'accessibility-insights-report' ; import { AICombinedReportDataConverter } from './ai-data-converter' ; let combinedReportDataConverterMock ; let testSubject ; describe ( AICombinedReportDataConverter , ( ) => { beforeEach ( ( ) => { combinedReportDataConverterMock = Mock . ofType < CombinedReportDataConverter > ( ) ; testSubject = new AICombinedReportDataConverter ( combinedReportDataConverterMock . object ) ; } ) ; afterEach ( ( ) => { combinedReportDataConverterMock . verifyAll ( ) ; } ) ; it ( 'convert' , ( ) => { const combinedReportParameters = { } as CombinedReportParameters ; combinedReportDataConverterMock . setup ( ( o ) => o . convert ( It . isAny ( ) , It . isAny ( ) ) ) . returns ( ( ) => combinedReportParameters ) . verifiable ( ) ; testSubject . convertCrawlingResults ( null , null ) ; } ) ; } ) ;