MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / testLyrics

Function testLyrics

packages/alphatab/test/model/Lyrics.test.ts:18–23  ·  view source on GitHub ↗
(text: string, chunks: string[])

Source from the content-addressed store, hash-verified

16 }
17
18 function testLyrics(text: string, chunks: string[]): void {
19 const lyrics: Lyrics = new Lyrics();
20 lyrics.text = text;
21 lyrics.finish();
22 expect(lyrics.chunks.join(',')).toBe(chunks.join(','));
23 }
24
25 it('apply-single-line-first-bar', async () => {
26 const score = await loadLyricsTemplateFile();

Callers 1

Lyrics.test.tsFile · 0.85

Calls 3

finishMethod · 0.95
toBeMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected