File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ as the object doesn't contains a key of 'c'
2020// Given an empty object
2121// When passed to contains
2222// Then it should return false
23- test . todo ( "contains on empty object returns false" ) ;
23+ test ( "contains on empty object returns false" , ( ) => {
24+ expect ( contains ( { } , "a" ) ) . toEqual ( false ) ;
25+ } ) ;
2426
2527// Given an object with properties
2628// When passed to contains with an existing property name
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ let seconds = 0;
1010let minutes = 0 ;
1111
1212function main ( ) {
13- // add an event listener to the "input" element that will call the counterUpdate function when clicked on
13+ // add an event listener to the "input" element that will call the counterUpdate function when clicked on or when the user types in the input field.
1414 document . getElementById ( "alarmSet" ) . addEventListener ( "click" , counterUpdate ) ;
15+ document . getElementById ( "alarmSet" ) . addEventListener ( "keyup" , counterUpdate ) ;
1516}
1617
1718// define the function that will update the counter
You can’t perform that action at this time.
0 commit comments