mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-02 02:42:28 +00:00
- Aligned `README.md`, `AGENTS.md`, and `docs/` with codebase reality. - Fixed `ReferenceError` in `js/nostr/managers/SignerManager.js`. - Implemented missing `resolveEventDTag` in `js/nostr/client.js`. - Updated `SignerManager.js` to support `nostr-tools` v2 `generateSecretKey` and handle `generatePrivateKey` aliasing (returning `Uint8Array`). - Updated `js/nostr/publishHelpers.js` to support `finalizeEvent` (v2) by converting hex keys to bytes. - Updated `js/nostr/sessionActor.js` to correctly identify session actor context, allowing authenticated users to publish watch history. - Fixed `tests/nostr/integration-remote-flow.test.mjs` by ensuring `generateSecretKey` is mocked. Co-authored-by: PR0M3TH3AN <[email protected]>
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
|
|
→ Running tests/nostr/integration-remote-flow.test.mjs
|
|
VIEW RESULT ERROR: { ok: false, error: 'missing-actor' }
|
|
TAP version 13
|
|
# Subtest: nostr login + remote signing + publish + watch history integration
|
|
not ok 1 - nostr login + remote signing + publish + watch history integration
|
|
---
|
|
duration_ms: 60.800483
|
|
type: 'test'
|
|
location: '/app/tests/nostr/integration-remote-flow.test.mjs:52:1'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
Expected values to be strictly equal:
|
|
|
|
false !== true
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected: true
|
|
actual: false
|
|
operator: 'strictEqual'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///app/tests/nostr/integration-remote-flow.test.mjs:272:83)
|
|
async Test.run (node:internal/test_runner/test:1054:7)
|
|
async startSubtestAfterBootstrap (node:internal/test_runner/harness:296:3)
|
|
...
|
|
1..1
|
|
# tests 1
|
|
# suites 0
|
|
# pass 0
|
|
# fail 1
|
|
# cancelled 0
|
|
# skipped 0
|
|
# todo 0
|
|
# duration_ms 72.354406
|
|
file:///app/scripts/run-targeted-tests.mjs:44
|
|
reject(new Error(`${relativePath} failed with exit code ${code}`));
|
|
^
|
|
|
|
Error: tests/nostr/integration-remote-flow.test.mjs failed with exit code 1
|
|
at ChildProcess.<anonymous> (file:///app/scripts/run-targeted-tests.mjs:44:16)
|
|
at ChildProcess.emit (node:events:519:28)
|
|
at maybeClose (node:internal/child_process:1101:16)
|
|
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
|
|
|
|
Node.js v22.22.0
|