diff options
| author | amankumarsingh77 <amankumarsingh7702@gmail.com> | 2026-07-28 20:32:57 +0530 |
|---|---|---|
| committer | Aman Kumar <145339995+amankumarsingh77@users.noreply.github.com> | 2026-08-02 19:12:46 +0530 |
| commit | 34e5cfdcbe29bbb5f2f46ba54eb67903abd9274d (patch) | |
| tree | f7b421652a7664d97362a308f4a1288cce2ef5b0 /test/deep-research/readability-test.ts | |
| parent | 91a2fdeff796bae8e87d9146e2d540550f54dd74 (diff) | |
refactor(test): strip comment noise
Removes suite banners, section dividers, and test-id markers that restate
the test names. Keeps one-line notes for the deleted-binary fixture order,
the never-arriving event consumer, the absent-vs-undefined key distinction,
the unexpected-method-echo rationale, and the real-browser teardown and
Local State flush quirks.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'test/deep-research/readability-test.ts')
| -rw-r--r-- | test/deep-research/readability-test.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/deep-research/readability-test.ts b/test/deep-research/readability-test.ts index ba0e0e0..211229d 100644 --- a/test/deep-research/readability-test.ts +++ b/test/deep-research/readability-test.ts @@ -1,8 +1,3 @@ -/** - * Unit tests for the pure readability extractor — no browser required. - * - * Run: npm test - */ import { test, describe } from "node:test"; import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; @@ -13,7 +8,6 @@ const fixture = (name: string): PageCapture => JSON.parse(readFileSync(join(import.meta.dirname, "fixtures", name), "utf8")) as PageCapture; describe("pure readability extractor", () => { - // S10: boilerplate stripped, article content preserved test("S10: article body text is present", () => { const page = extractReadable(fixture("article-capture.json")); assert.ok(page.text.includes("Chrome DevTools Protocol lets tools instrument")); @@ -54,7 +48,6 @@ describe("pure readability extractor", () => { assert.ok(page.wordCount > 40); }); - // S11: no clear article node falls back to bounded body text test("S11: structure-less page falls back to non-empty body text", () => { const page = extractReadable(fixture("no-article-capture.json")); assert.ok(page.text.length > 0); |
