aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/angular-mocks.js')
-rw-r--r--test/angular-mocks.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/angular-mocks.js b/test/angular-mocks.js
index a0d25042..5b5c9863 100644
--- a/test/angular-mocks.js
+++ b/test/angular-mocks.js
@@ -102,7 +102,9 @@ MockBrowser.prototype = {
if (value == undefined) {
delete this.cookieHash[name];
} else {
- this.cookieHash[name] = ""+value;
+ if (isString(value)) {
+ this.cookieHash[name] = value;
+ }
}
} else {
return copy(this.cookieHash);