diff --git a/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs b/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs index b954e23528..c5a8454347 100644 --- a/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs +++ b/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs @@ -1,6 +1,7 @@ import assert from 'node:assert/strict' import { createRenderer, nextTick } from '../web/vendor/vue/vue.esm-browser.js' import { BluetoothNotice, bluetoothConnection } from '../web/js/bluetooth-notice.js' +import { BluetoothPage } from '../web/js/bluetooth.js' import { LocalHistoryFeed, LocalRecordingsPage } from '../web/js/record-history.js' import { CamerasPage, CameraSnapshotFeed, LiveCameraPreview } from '../web/js/cameras.js' import { PipPage } from '../web/js/pip.js' @@ -108,11 +109,19 @@ assert.equal(requests, 0) window.StarPilotApp.bluetooth = () => false assert.equal(bluetoothConnection(), false) -{ - const { readFileSync } = await import('node:fs') - const lines = readFileSync(new URL('../web/js/bluetooth.js', import.meta.url), 'utf8').split('\n') - const chained = lines.findIndex((line) => line.trim() === '