From ee79dfe73c98a1c1bff67a169a44909e8493a86a Mon Sep 17 00:00:00 2001 From: rsandbach Date: Mon, 6 Nov 2023 22:07:04 -0500 Subject: [PATCH] Fixed failing test. --- src/parser/classes/StructuredDescriptionContent.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/parser/classes/StructuredDescriptionContent.ts b/src/parser/classes/StructuredDescriptionContent.ts index 3936e0679..15ac7ffdd 100644 --- a/src/parser/classes/StructuredDescriptionContent.ts +++ b/src/parser/classes/StructuredDescriptionContent.ts @@ -1,11 +1,11 @@ import { YTNode, type ObservedArray } from '../helpers.js'; -import Parser, { type RawNode } from '../index.js'; +import { Parser, type RawNode } from '../index.js'; import ExpandableVideoDescriptionBody from './ExpandableVideoDescriptionBody.js'; import HorizontalCardList from './HorizontalCardList.js'; import VideoDescriptionHeader from './VideoDescriptionHeader.js'; import VideoDescriptionInfocardsSection from './VideoDescriptionInfocardsSection.js'; import VideoDescriptionMusicSection from './VideoDescriptionMusicSection.js'; -import type VideoDescriptionTranscriptSection from './VideoDescriptionTranscriptSection.js'; +import VideoDescriptionTranscriptSection from './VideoDescriptionTranscriptSection.js'; export default class StructuredDescriptionContent extends YTNode { static type = 'StructuredDescriptionContent'; @@ -17,6 +17,7 @@ export default class StructuredDescriptionContent extends YTNode { constructor(data: RawNode) { super(); - this.items = Parser.parseArray(data.items, [ VideoDescriptionHeader, ExpandableVideoDescriptionBody, VideoDescriptionMusicSection, VideoDescriptionInfocardsSection, HorizontalCardList ]); + this.items = Parser.parseArray(data.items, [ VideoDescriptionHeader, ExpandableVideoDescriptionBody, VideoDescriptionMusicSection + , VideoDescriptionInfocardsSection, VideoDescriptionTranscriptSection, HorizontalCardList ]); } } \ No newline at end of file