import { NoteType , NoteTypeHandler } from "../../../src/MusicalScore/VoiceData/NoteType" ; describe ( "NoteType" , ( ) => { it ( "parses 32nd note correctly (sample value)" , ( done ) => { chai . expect ( NoteTypeHandler . StringToNoteType ( "32nd" ) ) . to . equal ( NoteType . _32nd ) ; done ( ) ; } ) ; it ( "parses all NoteType values from string correctly (in XML: <note><type>)" , ( done ) => { const inputValues = NoteTypeHandler . NoteTypeXmlValues ; for ( let i = 0 ; i < inputValues . length ; i ++ ) { chai . expect ( NoteTypeHandler . StringToNoteType ( inputValues [ i ] ) ) . to . equal ( i ) ; } done ( ) ; } ) ; } ) ;