Files
bitvid/tests/minimal-webtorrent.test.mjs
T
google-labs-jules[bot]andPR0M3TH3AN 2e2ea34d3c fix: Resolve js/app.js syntax error and update test mocks
- Removed orphaned code block in `js/app.js` that caused syntax errors during module loading.
- Updated `tests/helpers/moderation-test-helpers.mjs` to implement `resumePendingModeratedPlayback` and decoration logic in `MockApplication`, fixing `tests/app/moderation-overrides.test.mjs` and `tests/app/moderation-settings-refresh.test.mjs` failures.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-02-08 01:29:09 +00:00

9 lines
207 B
JavaScript

import test from "node:test";
import WebTorrent from "../js/webtorrent.min.js";
test("can import WebTorrent", () => {
if (typeof WebTorrent !== "function") {
throw new Error("Import failed");
}
});