Skip to content

Commit 07926ad

Browse files
committed
switch test videoID, remove useless import
1 parent 62a9b0e commit 07926ad

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

test/cases/innerTubeApi.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
import { config } from "../../src/config";
22
import assert from "assert";
3-
// import { innerTubeVideoDetails } from "../../src/types/innerTubeApi.model";
43
import { YouTubeAPI } from "../../src/utils/youtubeApi";
54
import * as innerTube from "../../src/utils/innerTubeAPI";
65
import { partialDeepEquals } from "../utils/partialDeepEquals";
76
import { getVideoDetails } from "../../src/utils/getVideoDetails";
87

9-
const videoID = "dQw4w9WgXcQ";
8+
const videoID = "BaW_jenozKc";
109
const expectedInnerTube = { // partial type of innerTubeVideoDetails
1110
videoId: videoID,
12-
title: "Rick Astley - Never Gonna Give You Up (Official Music Video)",
13-
lengthSeconds: "212",
14-
channelId: "UCuAXFkgsw1L7xaCfnd5JJOw",
11+
title: "youtube-dl test video \"'/\\ä↭𝕐",
12+
lengthSeconds: "10",
13+
channelId: "UCLqxVugv74EIW3VWh2NOa3Q",
1514
isOwnerViewing: false,
1615
isCrawlable: true,
1716
allowRatings: true,
18-
author: "Rick Astley",
17+
author: "Philipp Hagemeister",
1918
isPrivate: false,
2019
isUnpluggedCorpus: false,
2120
isLiveContent: false
2221
};
23-
const currentViews = 1284257550;
22+
const currentViews = 49816;
2423

2524
describe("innertube API test", function() {
2625
it("should be able to get innerTube details", async () => {

0 commit comments

Comments
 (0)