@@ -13,26 +13,26 @@ import {
1313
1414describe ( 'helper functions dateInput' , ( ) => {
1515 test ( 'isNumber should work' , ( ) => {
16- expect ( isNumber ( '2' ) ) . toBeTruthy ( )
17- expect ( isNumber ( 'a' ) ) . toBeFalsy ( )
16+ expect ( isNumber ( '2' ) ) . toBe ( true )
17+ expect ( isNumber ( 'a' ) ) . toBe ( false )
1818 } )
1919
2020 test ( 'isAOrP should work' , ( ) => {
21- expect ( isAOrP ( 'a' ) ) . toBeTruthy ( )
22- expect ( isAOrP ( 'p' ) ) . toBeTruthy ( )
23- expect ( isAOrP ( 'd' ) ) . toBeFalsy ( )
21+ expect ( isAOrP ( 'a' ) ) . toBe ( true )
22+ expect ( isAOrP ( 'p' ) ) . toBe ( true )
23+ expect ( isAOrP ( 'd' ) ) . toBe ( false )
2424 } )
2525
2626 test ( 'canConcat should work' , ( ) => {
27- expect ( canConcat ( 3 , 'h' , 3 , 12 ) ) . toBeFalsy ( )
28- expect ( canConcat ( 1 , 'm' , 2 , 24 ) ) . toBeTruthy ( )
29- expect ( canConcat ( 1 , 'm' , 2 , 12 ) ) . toBeTruthy ( )
27+ expect ( canConcat ( 3 , 'h' , 3 , 12 ) ) . toBe ( false )
28+ expect ( canConcat ( 1 , 'm' , 2 , 24 ) ) . toBe ( true )
29+ expect ( canConcat ( 1 , 'm' , 2 , 12 ) ) . toBe ( true )
3030 } )
3131
3232 test ( 'isCompleteHour should work' , ( ) => {
33- expect ( isCompleteHour ( 24 , 2 ) ) . toBeFalsy ( )
34- expect ( isCompleteHour ( 12 , 13 ) ) . toBeTruthy ( )
35- expect ( isCompleteHour ( 24 , 4 ) ) . toBeTruthy ( )
33+ expect ( isCompleteHour ( 24 , 2 ) ) . toBe ( false )
34+ expect ( isCompleteHour ( 12 , 13 ) ) . toBe ( true )
35+ expect ( isCompleteHour ( 24 , 4 ) ) . toBe ( true )
3636 } )
3737
3838 test ( 'getLastTypedChar should work' , ( ) => {
0 commit comments