Skip to content

Commit 8d9dbf3

Browse files
committed
Revert "Fix running test suite in old IEs"
This reverts commit 6e42d24.
1 parent 3ec5018 commit 8d9dbf3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/utils.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@
3434

3535
window.lifecycle = {
3636
afterEach: function () {
37-
for (var cookie in Cookies.get()) {
38-
// Remove the cookies created using js-cookie default attributes
39-
Cookies.remove(cookie);
40-
// Remove the cookies created using browser default attributes
37+
// Remove the cookies created using js-cookie default attributes
38+
Object.keys(Cookies.get()).forEach(Cookies.remove);
39+
// Remove the cookies created using browser default attributes
40+
Object.keys(Cookies.get()).forEach(function (cookie) {
4141
Cookies.remove(cookie, {
4242
path: ''
4343
});
44-
}
44+
});
4545
}
4646
};
4747

0 commit comments

Comments
 (0)