import { SessionClient } from "clients/session" ; param promise return function mockSessionClientSignOut ( promise ) { return spyOn ( SessionClient . prototype , "signOut" ) . and . callFake ( promise ) ; } return export function mockSessionClientSignOutWithSuccess ( ) { return mockSessionClientSignOut ( ( ) => Promise . resolve ( ) ) ; } param err return export function mockSessionClientSignOutWithError ( err = new Error ( "signOut" ) ) { return mockSessionClientSignOut ( ( ) => Promise . reject ( err ) ) ; }