We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66afffc commit 35fbd70Copy full SHA for 35fbd70
1 file changed
tests/index.test.ts
@@ -1,4 +1,5 @@
1
import { describe, expect, it, mock } from "bun:test";
2
+import type { RawCaptionTrack } from "../src/innertube.ts";
3
import type { SubtitleTrack } from "../src/subtitles.ts";
4
import type { TokenResult } from "../src/token-service.ts";
5
@@ -12,8 +13,8 @@ mock.module("../src/token-service.ts", () => ({
12
13
),
14
}));
15
-mock.module("../src/subtitles.ts", () => ({
16
- fetchSubtitles: mock(async (_videoId: string): Promise<SubtitleTrack[]> => []),
+mock.module("../src/innertube.ts", () => ({
17
+ fetchCaptionTracks: mock(async (_videoId: string): Promise<RawCaptionTrack[]> => []),
18
19
20
describe("handler", () => {
0 commit comments