import { strictEqual } from 'assert' ; import { createService } from '../core' ; import { SessionState } from './session-state.interface' ; import { SessionStore } from './session-store' ; describe ( 'SessionStore' , ( ) => { class Store extends SessionStore { save ( state , maxInactivity ) { throw new Error ( 'Method not implemented.' ) ; } read ( id ) { throw new Error ( 'Method not implemented.' ) ; } update ( state , maxInactivity ) { throw new Error ( 'Method not implemented.' ) ; } destroy ( id ) { throw new Error ( 'Method not implemented.' ) ; } clear ( ) { throw new Error ( 'Method not implemented.' ) ; } cleanUpExpiredSessions ( maxInactivity , maxLifeTime ) { throw new Error ( 'Method not implemented.' ) ; } } it ( 'should support concrete services.' , ( ) => { strictEqual ( SessionStore . concreteClassConfigPath , 'settings.session.store' ) ; strictEqual ( SessionStore . concreteClassName , 'ConcreteSessionStore' ) ; } ) ; it ( 'should have a boot method that does nothing.' , async ( ) => { const store = createService ( Store ) ; await store . boot ( ) ; } ) ; } ) ;