mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
- js/nostr/nip46Client.js: Convert hex keys to Uint8Array before calling nip44.v2 functions. Remove .bind() from getConversationKey getters to fix context issues. - js/ui/components/RevertModal.js: Remove duplicate imports and variable declarations causing SyntaxErrors. - tests/compliance/nip04_44_compliance.test.mjs: Update test setup to mock nostr-tools.utils and pass byte keys. - tests/nostr/dm-direct-message-flow.test.mjs: Update setupDmScenario to pass byte keys to getPublicKey and finalizeEvent. - tests/nostr/nip46Client.test.js: Update tests to handle byte vs hex keys correctly for nostr-tools v2. - tests/minimal-webtorrent.test.mjs: Add explicit assertions. - tests/ui/components/debug_hashtag_strip_helper.test.mjs: Add explicit assertions. - artifacts/test-audit-report.md: Add audit report. Co-authored-by: PR0M3TH3AN <[email protected]>
8 lines
245 B
JavaScript
8 lines
245 B
JavaScript
import test from "node:test";
|
|
import assert from "node:assert";
|
|
import WebTorrent from "../js/webtorrent.min.js";
|
|
|
|
test("can import WebTorrent", () => {
|
|
assert.strictEqual(typeof WebTorrent, "function", "WebTorrent should be a function");
|
|
});
|