android - Remove a bit of noise during the testrun (erros because of missing Bluetooth.println)

pull/3399/head
Martin Boonk 2024-05-04 22:58:17 +02:00
parent 24a40c88c9
commit b7babc46df
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@
"description": "Check setGPSPower is replaced",
"steps" : [
{"t":"cmd", "js": "Serial1.println = () => { }", "text": "Fake the serial port"},
{"t":"cmd", "js": "Bluetooth.println = () => { }", "text": "Fake the Bluetooth println"},
{"t":"cmd", "js": "require('Storage').writeJSON('android.settings.json', {overwriteGps: true})", "text": "Enable GPS overwrite"},
{"t":"cmd", "js": "eval(require('Storage').read('android.boot.js'))", "text": "Load the boot code"},
{"t":"assert", "js": "Bangle.setGPSPower.toString().includes('native')", "is":"false", "text": "setGPSPower has been replaced"}