mirror of https://github.com/espruino/BangleApps
runapptests - Set defaults for sending a GB event
parent
412a14c2ad
commit
e8dc8b9be8
|
@ -172,7 +172,15 @@ function runStep(step, subtest, test, state){
|
||||||
break;
|
break;
|
||||||
case "gb" :
|
case "gb" :
|
||||||
p = p.then(() => {
|
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;
|
break;
|
||||||
case "tap" :
|
case "tap" :
|
||||||
|
|
Loading…
Reference in New Issue