Skip to content

Commit

Permalink
Fixed failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsandbach committed Nov 7, 2023
1 parent c7d93bc commit ee79dfe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/parser/classes/StructuredDescriptionContent.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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 ]);
}
}

0 comments on commit ee79dfe

Please sign in to comment.