(name: string)
| 8 | import { TestPlatform } from 'test/TestPlatform'; |
| 9 | describe('AlphaTexExporterTest', () => { |
| 10 | async function loadScore(name: string): Promise<Score | null> { |
| 11 | const data = await TestPlatform.loadFile(`test-data/${name}`); |
| 12 | try { |
| 13 | return ScoreLoader.loadScoreFromBytes(data); |
| 14 | } catch { |
| 15 | return null; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | function exportAlphaTex(score: Score, settings: Settings | null = null): string { |
| 20 | return new AlphaTexExporter().exportToString(score, settings); |
no test coverage detected