@@ -84,24 +84,24 @@ describe('JSInterface._methodArgConstraints', () => {
8484 } ) ;
8585
8686 it ( 'should validate onEveryNoteDo arguments' , ( ) => {
87- expect ( ( ) => validateConstraints ( 'onEveryNoteDo' , [ 'C' ] ) ) . not . toThrow ( ) ;
87+ expect ( ( ) => validateConstraints ( 'onEveryNoteDo' , [ "action" ] ) ) . not . toThrow ( ) ;
8888 expect ( ( ) => validateConstraints ( 'onEveryNoteDo' , [ 123 ] ) ) . toThrow ( ) ;
8989 } ) ;
9090
9191 it ( 'should validate onEveryBeatDo arguments' , ( ) => {
92- expect ( ( ) => validateConstraints ( 'onEveryBeatDo' , [ 'C' ] ) ) . not . toThrow ( ) ;
92+ expect ( ( ) => validateConstraints ( 'onEveryBeatDo' , [ "action" ] ) ) . not . toThrow ( ) ;
9393 expect ( ( ) => validateConstraints ( 'onEveryBeatDo' , [ 123 ] ) ) . toThrow ( ) ;
9494 } ) ;
9595
9696 it ( 'should validate onStrongBeatDo arguments' , ( ) => {
97- expect ( ( ) => validateConstraints ( 'onStrongBeatDo' , [ 8 , 'C' ] ) ) . not . toThrow ( ) ;
98- expect ( ( ) => validateConstraints ( 'onStrongBeatDo' , [ 0 , 'C' ] ) ) . toThrow ( ) ;
99- expect ( ( ) => validateConstraints ( 'onStrongBeatDo' , [ 17 , 'C' ] ) ) . toThrow ( ) ;
97+ expect ( ( ) => validateConstraints ( 'onStrongBeatDo' , [ 8 , "action" ] ) ) . not . toThrow ( ) ;
98+ expect ( ( ) => validateConstraints ( 'onStrongBeatDo' , [ 0 , "action" ] ) ) . toThrow ( ) ;
99+ expect ( ( ) => validateConstraints ( 'onStrongBeatDo' , [ 17 , "action" ] ) ) . toThrow ( ) ;
100100 expect ( ( ) => validateConstraints ( 'onStrongBeatDo' , [ 8 , 123 ] ) ) . toThrow ( ) ;
101101 } ) ;
102102
103103 it ( 'should validate onWeakBeatDo arguments' , ( ) => {
104- expect ( ( ) => validateConstraints ( 'onWeakBeatDo' , [ 'C' ] ) ) . not . toThrow ( ) ;
104+ expect ( ( ) => validateConstraints ( 'onWeakBeatDo' , [ "action" ] ) ) . not . toThrow ( ) ;
105105 expect ( ( ) => validateConstraints ( 'onWeakBeatDo' , [ 123 ] ) ) . toThrow ( ) ;
106106 } ) ;
107107
@@ -112,9 +112,9 @@ describe('JSInterface._methodArgConstraints', () => {
112112 } ) ;
113113
114114 it ( 'should validate playPitch arguments' , ( ) => {
115- expect ( ( ) => validateConstraints ( 'playPitch' , [ 'C' , 4 ] ) ) . not . toThrow ( ) ;
115+ expect ( ( ) => validateConstraints ( 'playPitch' , [ "action" , 4 ] ) ) . not . toThrow ( ) ;
116116 expect ( ( ) => validateConstraints ( 'playPitch' , [ 123 , 4 ] ) ) . toThrow ( ) ;
117- expect ( ( ) => validateConstraints ( 'playPitch' , [ 'C' , 0 ] ) ) . toThrow ( ) ;
117+ expect ( ( ) => validateConstraints ( 'playPitch' , [ "action" , 0 ] ) ) . toThrow ( ) ;
118118 } ) ;
119119
120120 it ( 'should validate stepPitch arguments' , ( ) => {
0 commit comments