diff options
Diffstat (limited to 'src/angular-mocks.js')
| -rw-r--r-- | src/angular-mocks.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/angular-mocks.js b/src/angular-mocks.js index 719e87b3..066ccea5 100644 --- a/src/angular-mocks.js +++ b/src/angular-mocks.js @@ -439,7 +439,7 @@ function MockLogFactory() { * </pre> * */ -function TzDate(offset, timestamp, toStringVal) { +function TzDate(offset, timestamp) { if (angular.isString(timestamp)) { var tsStr = timestamp; @@ -463,10 +463,6 @@ function TzDate(offset, timestamp, toStringVal) { return this.date.getTime() - this.offsetDiff; }; - this.toString = function() { - return toStringVal; - }; - this.toLocaleDateString = function() { return this.date.toLocaleDateString(); }; @@ -537,8 +533,6 @@ function TzDate(offset, timestamp, toStringVal) { 'toLocaleTimeString', 'toSource', 'toString', 'toTimeString', 'toUTCString', 'valueOf']; angular.forEach(unimplementedMethods, function(methodName) { - if (methodName == 'toString' && toStringVal) return; - self[methodName] = function() { throw { name: "MethodNotImplemented", |
