From e8dc8b9be8edb1fe2fc4f174f1b84525836baa5d Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sat, 4 May 2024 10:46:25 +0200 Subject: [PATCH] runapptests - Set defaults for sending a GB event --- bin/runapptests.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/runapptests.js b/bin/runapptests.js index 195040826..349aed530 100755 --- a/bin/runapptests.js +++ b/bin/runapptests.js @@ -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" :