license import { createServiceFactory , SpectatorService } from '@ngneat/spectator/jest' ; import { AutoScrollService } from './auto-scroll.service' ; describe ( 'AutoScrollService' , ( ) => { let spectator ; const createService = createServiceFactory ( AutoScrollService ) ; beforeEach ( ( ) => ( spectator = createService ( ) ) ) ; it ( 'should...' , ( ) => { expect ( spectator . service ) . toBeTruthy ( ) ; } ) ; } ) ;