@@ -173,8 +173,8 @@ describe("setupDrumActions", () => {
173173 } ) ;
174174
175175 const actionConfigs = [
176- [ ' setDrum' , ' _setdrum_0' , true ] ,
177- [ ' mapPitchToDrum' , ' _mapdrum_0' , false ] ,
176+ [ " setDrum" , " _setdrum_0" , true ] ,
177+ [ " mapPitchToDrum" , " _mapdrum_0" , false ] ,
178178 ] ;
179179 describe . each ( actionConfigs ) ( "%s" , ( actionName , prefix , resetPitchDrumTable ) => {
180180 beforeEach ( ( ) => {
@@ -186,37 +186,37 @@ describe("setupDrumActions", () => {
186186 global . Mouse . getMouseFromTurtle . mockReturnValue ( null ) ;
187187 } ) ;
188188
189- it ( ' sets drum style and listener' , ( ) => {
189+ it ( " sets drum style and listener" , ( ) => {
190190 Singer . DrumActions [ actionName ] ( "d1" , 0 , 1 ) ;
191- expect ( targetTurtle . singer . drumStyle ) . toContain ( ' drum1' ) ;
191+ expect ( targetTurtle . singer . drumStyle ) . toContain ( " drum1" ) ;
192192 expect ( activity . logo . setDispatchBlock ) . toHaveBeenCalledWith ( 1 , 0 , prefix ) ;
193193 expect ( activity . logo . setTurtleListener ) . toHaveBeenCalledWith ( 0 , prefix , expect . any ( Function ) ) ;
194194 } ) ;
195195
196- it ( ' handles MusicBlocks.isRun case' , ( ) => {
196+ it ( " handles MusicBlocks.isRun case" , ( ) => {
197197 const mockMouse = { MB : { listeners : [ ] } } ;
198198 global . MusicBlocks . isRun = true ;
199199 global . Mouse . getMouseFromTurtle . mockReturnValue ( mockMouse ) ;
200- Singer . DrumActions [ actionName ] ( 'd1' , 0 ) ;
201- expect ( targetTurtle . singer . drumStyle ) . toContain ( ' drum1' ) ;
200+ Singer . DrumActions [ actionName ] ( "d1" , 0 ) ;
201+ expect ( targetTurtle . singer . drumStyle ) . toContain ( " drum1" ) ;
202202 expect ( mockMouse . MB . listeners ) . toContain ( prefix ) ;
203203 } ) ;
204204
205- it ( ' handles direct drum name input' , ( ) => {
206- Singer . DrumActions [ actionName ] ( ' drum2' , 0 , 1 ) ;
207- expect ( targetTurtle . singer . drumStyle ) . toContain ( ' drum2' ) ;
205+ it ( " handles direct drum name input" , ( ) => {
206+ Singer . DrumActions [ actionName ] ( " drum2" , 0 , 1 ) ;
207+ expect ( targetTurtle . singer . drumStyle ) . toContain ( " drum2" ) ;
208208 } ) ;
209209
210- it ( ' handles rhythm ruler' , ( ) => {
210+ it ( " handles rhythm ruler" , ( ) => {
211211 activity . logo . inRhythmRuler = true ;
212- Singer . DrumActions [ actionName ] ( 'd1' , 0 , 1 ) ;
212+ Singer . DrumActions [ actionName ] ( "d1" , 0 , 1 ) ;
213213 expect ( activity . logo . _currentDrumBlock ) . toBe ( 1 ) ;
214214 expect ( activity . logo . rhythmRuler . Drums ) . toContain ( 1 ) ;
215215 expect ( activity . logo . rhythmRuler . Rulers ) . toHaveLength ( 1 ) ;
216216 } ) ;
217217
218- it ( ' removes drumStyle on listener' , ( ) => {
219- Singer . DrumActions [ actionName ] ( 'd1' , 0 , 1 ) ;
218+ it ( " removes drumStyle on listener" , ( ) => {
219+ Singer . DrumActions [ actionName ] ( "d1" , 0 , 1 ) ;
220220 const listenerFn = activity . logo . setTurtleListener . mock . calls [ 0 ] [ 2 ] ;
221221 listenerFn ( ) ;
222222 expect ( targetTurtle . singer . drumStyle ) . toHaveLength ( 0 ) ;
@@ -225,8 +225,8 @@ describe("setupDrumActions", () => {
225225 }
226226 } ) ;
227227
228- it ( ' only adds listener when blk undefined and not running' , ( ) => {
229- Singer . DrumActions [ actionName ] ( 'd1' , 0 ) ;
228+ it ( " only adds listener when blk undefined and not running" , ( ) => {
229+ Singer . DrumActions [ actionName ] ( "d1" , 0 ) ;
230230 expect ( activity . logo . setDispatchBlock ) . not . toHaveBeenCalled ( ) ;
231231 expect ( global . Mouse . getMouseFromTurtle ) . not . toHaveBeenCalled ( ) ;
232232 expect ( activity . logo . setTurtleListener ) . toHaveBeenCalledWith (
@@ -236,10 +236,10 @@ describe("setupDrumActions", () => {
236236 ) ;
237237 } ) ;
238238
239- it ( ' skips mouse listener when isRun and mouse null' , ( ) => {
239+ it ( " skips mouse listener when isRun and mouse null" , ( ) => {
240240 global . MusicBlocks . isRun = true ;
241241 global . Mouse . getMouseFromTurtle . mockReturnValue ( null ) ;
242- Singer . DrumActions [ actionName ] ( 'd1' , 0 ) ;
242+ Singer . DrumActions [ actionName ] ( "d1" , 0 ) ;
243243 expect ( activity . logo . setDispatchBlock ) . not . toHaveBeenCalled ( ) ;
244244 expect ( global . Mouse . getMouseFromTurtle ) . toHaveBeenCalledWith ( expect . any ( Object ) ) ;
245245 expect ( activity . logo . setTurtleListener ) . toHaveBeenCalledWith (
0 commit comments