const veppUpdateServiceSpy = {
...jasmine.createSpyObj('VeppUpdateService', [ // <== spy object
'notify$', // <== properties
'lastNotify',
'addSubscribeParam',
'deleteSubscribeParam',
]),
notify$: from([
{
data: { id: 100 },
main_table: IspTableName.SITE,
type: NotifyTypes.CREATE,
},
{
data: { id: 93 },
main_table: IspTableName.SITE,
type: NotifyTypes.UPDATE,
},
{
data: { id: 93 },
main_table: IspTableName.SITE,
type: NotifyTypes.DELETE,
},
]).pipe(
// tslint:disable-next-line:no-magic-numbers
delay(500)
),
} as jasmine.SpyObj<VeppUpdateService>;