runapptests - Set defaults for sending a GB event

pull/3399/head
Martin Boonk 2024-05-04 10:46:25 +02:00
parent 412a14c2ad
commit e8dc8b9be8
1 changed files with 9 additions and 1 deletions

View File

@ -172,7 +172,15 @@ function runStep(step, subtest, test, state){
break;
case "gb" :
p = p.then(() => {
emu.tx(`GB(${JSON.stringify(step.obj)})\n`);
let obj = Object.apply({
src:'Messenger',
t: 'notify',
type: 'text',
id: Date.now().toFixed(0),
title:'title',
body:'body'
}, step.obj || {});
emu.tx(`GB(${JSON.stringify(obj)})\n`);
});
break;
case "tap" :