Skip to content

Commit b5c7f47

Browse files
committed
Revert "added event listener for keyup to update the counter when the user types in the input field."
This reverts commit adf628a.
1 parent e629a85 commit b5c7f47

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Sprint-2/implement/contains.test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ 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("contains on empty object returns false", () => {
24-
expect(contains({}, "a")).toEqual(false);
25-
});
23+
test.todo("contains on empty object returns false");
2624

2725
// Given an object with properties
2826
// When passed to contains with an existing property name

Sprint-3/alarmclock/alarmclock.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ const stop = document.querySelector("#stop");
99
let totalSeconds = 0;
1010

1111
function main() {
12-
// 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.
12+
// add an event listener to the "input" element that will call the counterUpdate function when clicked on
1313
document.getElementById("alarmSet").addEventListener("click", counterUpdate);
14-
document.getElementById("alarmSet").addEventListener("keyup", counterUpdate);
1514
}
1615

1716
// define the function that will update the counter

0 commit comments

Comments
 (0)