Skip to content

Commit

Permalink
chore: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Feb 21, 2025
1 parent a3fafe2 commit c9328c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createWriteStream, existsSync } from 'node:fs';
import { Innertube, Utils, YT, YTMusic, YTNodes } from '../bundle/node.cjs';
import { Innertube, YT, YTMusic, YTNodes } from '../bundle/node.cjs';

jest.useRealTimers();

Expand Down Expand Up @@ -317,7 +316,7 @@ describe('YouTube.js Tests', () => {
expect(playlist.contents).toBeDefined();
expect(playlist.contents?.length).toBeGreaterThan(0);

const info = await innertube.music.getInfo(playlist.contents!.first())
const info = await innertube.music.getInfo(playlist.contents!.first().as(YTNodes.MusicResponsiveListItem))
expect(info).toBeDefined();
});

Expand Down

0 comments on commit c9328c5

Please sign in to comment.