param data param timeout export default function mockPromise < T extends any > ( data , timeout = 300 ) { return new Promise ( resolve => { setTimeout ( ( ) => { resolve ( data ) ; } , timeout ) ; } ) ; }