offcourse 0.0.2 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +50 -0
- package/.husky/commit-msg +2 -0
- package/.husky/pre-commit +1 -0
- package/.husky/pre-push +3 -0
- package/.prettierrc +8 -0
- package/.release-it.json +23 -0
- package/ARCHITECTURE.md +233 -0
- package/CHANGELOG.md +78 -0
- package/README.md +255 -20
- package/commitlint.config.js +4 -0
- package/dist/ai/openRouter.d.ts +47 -0
- package/dist/ai/openRouter.d.ts.map +1 -0
- package/dist/ai/openRouter.js +116 -0
- package/dist/ai/openRouter.js.map +1 -0
- package/dist/ai/transcriptPolisher.d.ts +24 -0
- package/dist/ai/transcriptPolisher.d.ts.map +1 -0
- package/dist/ai/transcriptPolisher.js +89 -0
- package/dist/ai/transcriptPolisher.js.map +1 -0
- package/dist/cli/commands/config.d.ts +13 -0
- package/dist/cli/commands/config.d.ts.map +1 -0
- package/dist/cli/commands/config.js +66 -0
- package/dist/cli/commands/config.js.map +1 -0
- package/dist/cli/commands/enrich.d.ts +14 -0
- package/dist/cli/commands/enrich.d.ts.map +1 -0
- package/dist/cli/commands/enrich.js +271 -0
- package/dist/cli/commands/enrich.js.map +1 -0
- package/dist/cli/commands/inspect.d.ts +11 -0
- package/dist/cli/commands/inspect.d.ts.map +1 -0
- package/dist/cli/commands/inspect.js +365 -0
- package/dist/cli/commands/inspect.js.map +1 -0
- package/dist/cli/commands/login.d.ts +12 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/login.js +55 -0
- package/dist/cli/commands/login.js.map +1 -0
- package/dist/cli/commands/status.d.ts +15 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +118 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/sync.d.ts +16 -0
- package/dist/cli/commands/sync.d.ts.map +1 -0
- package/dist/cli/commands/sync.js +922 -0
- package/dist/cli/commands/sync.js.map +1 -0
- package/dist/cli/commands/syncGhl.d.ts +20 -0
- package/dist/cli/commands/syncGhl.d.ts.map +1 -0
- package/dist/cli/commands/syncGhl.js +483 -0
- package/dist/cli/commands/syncGhl.js.map +1 -0
- package/dist/cli/commands/syncHighLevel.d.ts +24 -0
- package/dist/cli/commands/syncHighLevel.d.ts.map +1 -0
- package/dist/cli/commands/syncHighLevel.js +483 -0
- package/dist/cli/commands/syncHighLevel.js.map +1 -0
- package/dist/cli/commands/syncHighLevel.test.d.ts +2 -0
- package/dist/cli/commands/syncHighLevel.test.d.ts.map +1 -0
- package/dist/cli/commands/syncHighLevel.test.js +102 -0
- package/dist/cli/commands/syncHighLevel.test.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +106 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/config/configManager.d.ts +31 -0
- package/dist/config/configManager.d.ts.map +1 -0
- package/dist/config/configManager.js +64 -0
- package/dist/config/configManager.js.map +1 -0
- package/dist/config/paths.d.ts +21 -0
- package/dist/config/paths.d.ts.map +1 -0
- package/dist/config/paths.js +33 -0
- package/dist/config/paths.js.map +1 -0
- package/dist/config/paths.test.d.ts +2 -0
- package/dist/config/paths.test.d.ts.map +1 -0
- package/dist/config/paths.test.js +70 -0
- package/dist/config/paths.test.js.map +1 -0
- package/dist/config/schema.d.ts +60 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +50 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/schema.test.d.ts +2 -0
- package/dist/config/schema.test.d.ts.map +1 -0
- package/dist/config/schema.test.js +151 -0
- package/dist/config/schema.test.js.map +1 -0
- package/dist/downloader/hlsDownloader.d.ts +58 -0
- package/dist/downloader/hlsDownloader.d.ts.map +1 -0
- package/dist/downloader/hlsDownloader.js +254 -0
- package/dist/downloader/hlsDownloader.js.map +1 -0
- package/dist/downloader/hlsDownloader.test.d.ts +2 -0
- package/dist/downloader/hlsDownloader.test.d.ts.map +1 -0
- package/dist/downloader/hlsDownloader.test.js +116 -0
- package/dist/downloader/hlsDownloader.test.js.map +1 -0
- package/dist/downloader/hlsValidator.d.ts +35 -0
- package/dist/downloader/hlsValidator.d.ts.map +1 -0
- package/dist/downloader/hlsValidator.js +148 -0
- package/dist/downloader/hlsValidator.js.map +1 -0
- package/dist/downloader/index.d.ts +26 -0
- package/dist/downloader/index.d.ts.map +1 -0
- package/dist/downloader/index.js +52 -0
- package/dist/downloader/index.js.map +1 -0
- package/dist/downloader/loomDownloader.d.ts +56 -0
- package/dist/downloader/loomDownloader.d.ts.map +1 -0
- package/dist/downloader/loomDownloader.js +559 -0
- package/dist/downloader/loomDownloader.js.map +1 -0
- package/dist/downloader/loomDownloader.test.d.ts +2 -0
- package/dist/downloader/loomDownloader.test.d.ts.map +1 -0
- package/dist/downloader/loomDownloader.test.js +36 -0
- package/dist/downloader/loomDownloader.test.js.map +1 -0
- package/dist/downloader/queue.d.ts +56 -0
- package/dist/downloader/queue.d.ts.map +1 -0
- package/dist/downloader/queue.js +88 -0
- package/dist/downloader/queue.js.map +1 -0
- package/dist/downloader/queue.test.d.ts +2 -0
- package/dist/downloader/queue.test.d.ts.map +1 -0
- package/dist/downloader/queue.test.js +158 -0
- package/dist/downloader/queue.test.js.map +1 -0
- package/dist/downloader/videoDownloader.d.ts +32 -0
- package/dist/downloader/videoDownloader.d.ts.map +1 -0
- package/dist/downloader/videoDownloader.js +173 -0
- package/dist/downloader/videoDownloader.js.map +1 -0
- package/dist/downloader/vimeoDownloader.d.ts +52 -0
- package/dist/downloader/vimeoDownloader.d.ts.map +1 -0
- package/dist/downloader/vimeoDownloader.js +565 -0
- package/dist/downloader/vimeoDownloader.js.map +1 -0
- package/dist/downloader/vimeoDownloader.test.d.ts +2 -0
- package/dist/downloader/vimeoDownloader.test.d.ts.map +1 -0
- package/dist/downloader/vimeoDownloader.test.js +51 -0
- package/dist/downloader/vimeoDownloader.test.js.map +1 -0
- package/dist/scraper/auth.d.ts +29 -0
- package/dist/scraper/auth.d.ts.map +1 -0
- package/dist/scraper/auth.js +115 -0
- package/dist/scraper/auth.js.map +1 -0
- package/dist/scraper/extractor.d.ts +49 -0
- package/dist/scraper/extractor.d.ts.map +1 -0
- package/dist/scraper/extractor.js +627 -0
- package/dist/scraper/extractor.js.map +1 -0
- package/dist/scraper/extractor.test.d.ts +2 -0
- package/dist/scraper/extractor.test.d.ts.map +1 -0
- package/dist/scraper/extractor.test.js +65 -0
- package/dist/scraper/extractor.test.js.map +1 -0
- package/dist/scraper/ghl/auth.d.ts +25 -0
- package/dist/scraper/ghl/auth.d.ts.map +1 -0
- package/dist/scraper/ghl/auth.js +187 -0
- package/dist/scraper/ghl/auth.js.map +1 -0
- package/dist/scraper/ghl/extractor.d.ts +96 -0
- package/dist/scraper/ghl/extractor.d.ts.map +1 -0
- package/dist/scraper/ghl/extractor.js +345 -0
- package/dist/scraper/ghl/extractor.js.map +1 -0
- package/dist/scraper/ghl/index.d.ts +4 -0
- package/dist/scraper/ghl/index.d.ts.map +1 -0
- package/dist/scraper/ghl/index.js +4 -0
- package/dist/scraper/ghl/index.js.map +1 -0
- package/dist/scraper/ghl/navigator.d.ts +93 -0
- package/dist/scraper/ghl/navigator.d.ts.map +1 -0
- package/dist/scraper/ghl/navigator.js +447 -0
- package/dist/scraper/ghl/navigator.js.map +1 -0
- package/dist/scraper/highlevel/auth.d.ts +25 -0
- package/dist/scraper/highlevel/auth.d.ts.map +1 -0
- package/dist/scraper/highlevel/auth.js +189 -0
- package/dist/scraper/highlevel/auth.js.map +1 -0
- package/dist/scraper/highlevel/extractor.d.ts +97 -0
- package/dist/scraper/highlevel/extractor.d.ts.map +1 -0
- package/dist/scraper/highlevel/extractor.js +386 -0
- package/dist/scraper/highlevel/extractor.js.map +1 -0
- package/dist/scraper/highlevel/extractor.test.d.ts +2 -0
- package/dist/scraper/highlevel/extractor.test.d.ts.map +1 -0
- package/dist/scraper/highlevel/extractor.test.js +101 -0
- package/dist/scraper/highlevel/extractor.test.js.map +1 -0
- package/dist/scraper/highlevel/index.d.ts +3 -0
- package/dist/scraper/highlevel/index.d.ts.map +1 -0
- package/dist/scraper/highlevel/index.js +3 -0
- package/dist/scraper/highlevel/index.js.map +1 -0
- package/dist/scraper/highlevel/navigator.d.ts +93 -0
- package/dist/scraper/highlevel/navigator.d.ts.map +1 -0
- package/dist/scraper/highlevel/navigator.js +492 -0
- package/dist/scraper/highlevel/navigator.js.map +1 -0
- package/dist/scraper/highlevel/navigator.test.d.ts +2 -0
- package/dist/scraper/highlevel/navigator.test.d.ts.map +1 -0
- package/dist/scraper/highlevel/navigator.test.js +78 -0
- package/dist/scraper/highlevel/navigator.test.js.map +1 -0
- package/dist/scraper/navigator.d.ts +65 -0
- package/dist/scraper/navigator.d.ts.map +1 -0
- package/dist/scraper/navigator.js +300 -0
- package/dist/scraper/navigator.js.map +1 -0
- package/dist/scraper/navigator.test.d.ts +2 -0
- package/dist/scraper/navigator.test.d.ts.map +1 -0
- package/dist/scraper/navigator.test.js +63 -0
- package/dist/scraper/navigator.test.js.map +1 -0
- package/dist/scraper/skoolApi.d.ts +17 -0
- package/dist/scraper/skoolApi.d.ts.map +1 -0
- package/dist/scraper/skoolApi.js +72 -0
- package/dist/scraper/skoolApi.js.map +1 -0
- package/dist/scraper/videoInterceptor.d.ts +19 -0
- package/dist/scraper/videoInterceptor.d.ts.map +1 -0
- package/dist/scraper/videoInterceptor.js +315 -0
- package/dist/scraper/videoInterceptor.js.map +1 -0
- package/dist/shared/auth.d.ts +58 -0
- package/dist/shared/auth.d.ts.map +1 -0
- package/dist/shared/auth.js +211 -0
- package/dist/shared/auth.js.map +1 -0
- package/dist/shared/fs.d.ts +31 -0
- package/dist/shared/fs.d.ts.map +1 -0
- package/dist/shared/fs.js +73 -0
- package/dist/shared/fs.js.map +1 -0
- package/dist/shared/http.d.ts +15 -0
- package/dist/shared/http.d.ts.map +1 -0
- package/dist/shared/http.js +31 -0
- package/dist/shared/http.js.map +1 -0
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/index.js.map +1 -0
- package/dist/state/database.d.ts +245 -0
- package/dist/state/database.d.ts.map +1 -0
- package/dist/state/database.js +676 -0
- package/dist/state/database.js.map +1 -0
- package/dist/state/database.test.d.ts +2 -0
- package/dist/state/database.test.d.ts.map +1 -0
- package/dist/state/database.test.js +34 -0
- package/dist/state/database.test.js.map +1 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/index.d.ts.map +1 -0
- package/dist/state/index.js +2 -0
- package/dist/state/index.js.map +1 -0
- package/dist/storage/fileSystem.d.ts +56 -0
- package/dist/storage/fileSystem.d.ts.map +1 -0
- package/dist/storage/fileSystem.js +121 -0
- package/dist/storage/fileSystem.js.map +1 -0
- package/dist/transcription/whisperService.d.ts +27 -0
- package/dist/transcription/whisperService.d.ts.map +1 -0
- package/dist/transcription/whisperService.js +102 -0
- package/dist/transcription/whisperService.js.map +1 -0
- package/eslint.config.js +55 -0
- package/package.json +68 -11
- package/src/__fixtures__/highlevel-post-response.json +68 -0
- package/src/__fixtures__/hls-master-playlist.m3u8 +24 -0
- package/src/cli/commands/__snapshots__/syncHighLevel.test.ts.snap +38 -0
- package/src/cli/commands/config.ts +74 -0
- package/src/cli/commands/inspect.ts +441 -0
- package/src/cli/commands/login.ts +68 -0
- package/src/cli/commands/status.ts +147 -0
- package/src/cli/commands/sync.ts +1235 -0
- package/src/cli/commands/syncHighLevel.test.ts +144 -0
- package/src/cli/commands/syncHighLevel.ts +639 -0
- package/src/cli/index.ts +121 -0
- package/src/config/configManager.ts +75 -0
- package/src/config/paths.test.ts +83 -0
- package/src/config/paths.ts +36 -0
- package/src/config/schema.test.ts +173 -0
- package/src/config/schema.ts +65 -0
- package/src/downloader/hlsDownloader.test.ts +148 -0
- package/src/downloader/hlsDownloader.ts +327 -0
- package/src/downloader/hlsValidator.ts +196 -0
- package/src/downloader/index.ts +122 -0
- package/src/downloader/loomDownloader.test.ts +43 -0
- package/src/downloader/loomDownloader.ts +742 -0
- package/src/downloader/queue.test.ts +199 -0
- package/src/downloader/queue.ts +118 -0
- package/src/downloader/vimeoDownloader.test.ts +62 -0
- package/src/downloader/vimeoDownloader.ts +722 -0
- package/src/scraper/extractor.test.ts +124 -0
- package/src/scraper/extractor.ts +757 -0
- package/src/scraper/highlevel/__snapshots__/extractor.test.ts.snap +41 -0
- package/src/scraper/highlevel/extractor.test.ts +134 -0
- package/src/scraper/highlevel/extractor.ts +537 -0
- package/src/scraper/highlevel/index.ts +2 -0
- package/src/scraper/highlevel/navigator.test.ts +110 -0
- package/src/scraper/highlevel/navigator.ts +668 -0
- package/src/scraper/highlevel/schemas.ts +183 -0
- package/src/scraper/navigator.test.ts +122 -0
- package/src/scraper/navigator.ts +355 -0
- package/src/scraper/schemas.ts +177 -0
- package/src/scraper/videoInterceptor.ts +435 -0
- package/src/shared/auth.test.ts +58 -0
- package/src/shared/auth.ts +251 -0
- package/src/shared/firebase.ts +151 -0
- package/src/shared/fs.ts +80 -0
- package/src/shared/http.ts +34 -0
- package/src/shared/index.ts +6 -0
- package/src/shared/slug.ts +26 -0
- package/src/shared/url.test.ts +122 -0
- package/src/shared/url.ts +57 -0
- package/src/state/database.test.ts +49 -0
- package/src/state/database.ts +919 -0
- package/src/state/index.ts +14 -0
- package/src/storage/fileSystem.test.ts +64 -0
- package/src/storage/fileSystem.ts +175 -0
- package/tsconfig.json +28 -0
- package/vitest.config.ts +29 -0
- package/cli.js +0 -45
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { isHighLevelPortal, formatHighLevelMarkdown } from "./syncHighLevel.js";
|
|
3
|
+
|
|
4
|
+
describe("isHighLevelPortal", () => {
|
|
5
|
+
describe("detects HighLevel portal patterns", () => {
|
|
6
|
+
it("detects member.*.com domains", () => {
|
|
7
|
+
expect(isHighLevelPortal("https://member.example.com/courses")).toBe(true);
|
|
8
|
+
expect(isHighLevelPortal("https://member.myschool.com")).toBe(true);
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("detects portal.*.com domains", () => {
|
|
12
|
+
expect(isHighLevelPortal("https://portal.academy.com/courses")).toBe(true);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
it("detects courses.*.com domains", () => {
|
|
16
|
+
expect(isHighLevelPortal("https://courses.school.com/products/123")).toBe(true);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it("detects clientclub.net", () => {
|
|
20
|
+
expect(isHighLevelPortal("https://sso.clientclub.net/login")).toBe(true);
|
|
21
|
+
expect(isHighLevelPortal("https://app.clientclub.net")).toBe(true);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it("detects highlevel.io", () => {
|
|
25
|
+
expect(isHighLevelPortal("https://app.highlevel.io")).toBe(true);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("detects leadconnectorhq.com", () => {
|
|
29
|
+
expect(isHighLevelPortal("https://api.leadconnectorhq.com")).toBe(true);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
describe("detects HighLevel URL patterns", () => {
|
|
34
|
+
it("detects /courses/products path", () => {
|
|
35
|
+
expect(isHighLevelPortal("https://custom.domain.com/courses/products/abc-123")).toBe(true);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it("detects /courses/library path", () => {
|
|
39
|
+
expect(isHighLevelPortal("https://school.io/courses/library")).toBe(true);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("detects /courses/classroom path", () => {
|
|
43
|
+
expect(isHighLevelPortal("https://learn.site.com/courses/classroom")).toBe(true);
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
describe("rejects non-HighLevel URLs", () => {
|
|
48
|
+
it("rejects Skool URLs", () => {
|
|
49
|
+
expect(isHighLevelPortal("https://www.skool.com/community")).toBe(false);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
it("matches courses.* subdomains (may include Teachable)", () => {
|
|
53
|
+
// Note: courses.*.com pattern is intentionally broad
|
|
54
|
+
// Teachable courses subdomain matches the pattern
|
|
55
|
+
expect(isHighLevelPortal("https://courses.teachable.com")).toBe(true);
|
|
56
|
+
// But teachable.com root doesn't match
|
|
57
|
+
expect(isHighLevelPortal("https://teachable.com/course")).toBe(false);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
it("rejects Kajabi URLs", () => {
|
|
61
|
+
expect(isHighLevelPortal("https://app.kajabi.com")).toBe(false);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("rejects generic URLs", () => {
|
|
65
|
+
expect(isHighLevelPortal("https://example.com")).toBe(false);
|
|
66
|
+
expect(isHighLevelPortal("https://youtube.com/watch?v=123")).toBe(false);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it("rejects empty string", () => {
|
|
70
|
+
expect(isHighLevelPortal("")).toBe(false);
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
describe("formatHighLevelMarkdown", () => {
|
|
76
|
+
it("formats basic lesson with title only", () => {
|
|
77
|
+
const result = formatHighLevelMarkdown("Introduction", null, null);
|
|
78
|
+
expect(result).toBe("# Introduction\n");
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
it("includes description when present", () => {
|
|
82
|
+
const result = formatHighLevelMarkdown("Getting Started", "Welcome to the course!", null);
|
|
83
|
+
|
|
84
|
+
expect(result).toContain("# Getting Started");
|
|
85
|
+
expect(result).toContain("Welcome to the course!");
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it("includes video section when URL present", () => {
|
|
89
|
+
const result = formatHighLevelMarkdown(
|
|
90
|
+
"Video Lesson",
|
|
91
|
+
null,
|
|
92
|
+
null,
|
|
93
|
+
"https://storage.example.com/video.mp4"
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
expect(result).toContain("## Video");
|
|
97
|
+
expect(result).toContain("Video URL: https://storage.example.com/video.mp4");
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it("converts HTML content to text", () => {
|
|
101
|
+
const html = "<p>First paragraph.</p><p>Second paragraph.</p>";
|
|
102
|
+
const result = formatHighLevelMarkdown("Lesson", null, html);
|
|
103
|
+
|
|
104
|
+
expect(result).toContain("First paragraph.");
|
|
105
|
+
expect(result).toContain("Second paragraph.");
|
|
106
|
+
expect(result).not.toContain("<p>");
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it("converts HTML lists to markdown", () => {
|
|
110
|
+
const html = "<ul><li>Item 1</li><li>Item 2</li></ul>";
|
|
111
|
+
const result = formatHighLevelMarkdown("Lesson", null, html);
|
|
112
|
+
|
|
113
|
+
expect(result).toContain("- Item 1");
|
|
114
|
+
expect(result).toContain("- Item 2");
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
it("decodes HTML entities", () => {
|
|
118
|
+
const html = "<p>Tom & Jerry <3 "cartoons"</p>";
|
|
119
|
+
const result = formatHighLevelMarkdown("Lesson", null, html);
|
|
120
|
+
|
|
121
|
+
expect(result).toContain('Tom & Jerry <3 "cartoons"');
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it("snapshot: complete lesson with all parts", () => {
|
|
125
|
+
const result = formatHighLevelMarkdown(
|
|
126
|
+
"Complete Module: Advanced Techniques",
|
|
127
|
+
"In this comprehensive module, you'll learn advanced strategies.",
|
|
128
|
+
"<p>Let's dive into the key concepts:</p><ul><li>Concept A</li><li>Concept B</li><li>Concept C</li></ul><p>Remember to practice daily!</p>",
|
|
129
|
+
"https://cdn.example.com/videos/advanced-techniques.mp4"
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
expect(result).toMatchSnapshot();
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
it("snapshot: lesson with HTML entities and special chars", () => {
|
|
136
|
+
const result = formatHighLevelMarkdown(
|
|
137
|
+
"Q&A Session: Common Questions",
|
|
138
|
+
"Your questions answered!",
|
|
139
|
+
"<p>Q: What's the best approach?</p><p>A: It depends on your goals & resources.</p><p> </p><p><script> tags are blocked</p>"
|
|
140
|
+
);
|
|
141
|
+
|
|
142
|
+
expect(result).toMatchSnapshot();
|
|
143
|
+
});
|
|
144
|
+
});
|