Skip to content

Commit 6e42d24

Browse files
committed
Fix running test suite in old IEs
There's no support for `Object.keys()`...
1 parent f9f3f0e commit 6e42d24

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-
// 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) {
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
4141
Cookies.remove(cookie, {
4242
path: ''
4343
});
44-
});
44+
}
4545
}
4646
};
4747

0 commit comments

Comments
 (0)