diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ca142f1a..dbdb91fe 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -111,6 +111,7 @@ jobs: node test-issue-1364-pill-no-clamp.js node test-issue-1375-scope-stats-fetch.js node test-issue-1361-cb-presets.js + node test-live.js - name: 🧹 Frontend lint (eslint no-undef) — issue #1342 run: | diff --git a/test-live.js b/test-live.js index 46322791..56e85865 100644 --- a/test-live.js +++ b/test-live.js @@ -149,6 +149,7 @@ function makeLiveSandbox({ withAppJs = false } = {}) { addLiveGlobals(ctx); loadInCtx(ctx, 'public/roles.js'); + loadInCtx(ctx, 'public/packet-helpers.js'); if (withAppJs) loadInCtx(ctx, 'public/app.js'); try { loadInCtx(ctx, 'public/live.js'); } catch (e) { console.error('live.js load error:', e.message); @@ -190,7 +191,7 @@ console.log('\n=== live.js: dbPacketToLive ==='); const pkt = { id: 1, hash: 'x', decoded_json: null, path_json: null, timestamp: '2024-01-01T00:00:00Z' }; const result = dbPacketToLive(pkt); assert.strictEqual(result.decoded.header.payloadTypeName, 'UNKNOWN'); - assert.deepStrictEqual(result.decoded.path.hops, []); + assert.strictEqual(result.decoded.path.hops.length, 0); }); test('uses payload_type_name as fallback', () => {