import { Credentials } from './credentials.service' ; export class MockCredentialsService { credentials : Credentials | null = { username : 'test' , token : '123' } ; isAuthenticated ( ) { return ! ! this . credentials ; } setCredentials ( credentials ? , _remember ? ) { this . credentials = credentials || null ; } }