We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f3f0e commit 6e42d24Copy full SHA for 6e42d24
test/utils.js
@@ -34,14 +34,14 @@
34
35
window.lifecycle = {
36
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) {
+ for (var cookie in Cookies.get()) {
+ // Remove the cookies created using js-cookie default attributes
+ Cookies.remove(cookie);
+ // Remove the cookies created using browser default attributes
41
Cookies.remove(cookie, {
42
path: ''
43
});
44
- });
+ }
45
}
46
};
47
0 commit comments