import faker from 'faker/locale/en' ; import { NotificationOptions } from './notification-options.interface' ; export function notificationMock ( opts ? ) { return { instance : { title : faker . random . word ( ) , body : faker . random . words ( 10 ) , timestamp : new Date ( ) . getTime ( ) , ... opts } } ; }