We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec5018 commit 8d9dbf3Copy full SHA for 8d9dbf3
test/utils.js
@@ -34,14 +34,14 @@
34
35
window.lifecycle = {
36
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
+ // Remove the cookies created using js-cookie default attributes
+ Object.keys(Cookies.get()).forEach(Cookies.remove);
+ // Remove the cookies created using browser default attributes
+ Object.keys(Cookies.get()).forEach(function (cookie) {
41
Cookies.remove(cookie, {
42
path: ''
43
});
44
- }
+ });
45
}
46
};
47
0 commit comments