aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular-mocks.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/angular-mocks.js')
-rw-r--r--src/angular-mocks.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/angular-mocks.js b/src/angular-mocks.js
index 0f806917..887d3520 100644
--- a/src/angular-mocks.js
+++ b/src/angular-mocks.js
@@ -385,9 +385,12 @@ function TzDate(offset, timestamp) {
return this.origDate.getUTCSeconds();
};
+ this.getDay = function() {
+ return this.origDate.getDay();
+ };
//hide all methods not implemented in this mock that the Date prototype exposes
- var unimplementedMethods = ['getDay', 'getMilliseconds', 'getTime', 'getUTCDay',
+ var unimplementedMethods = ['getMilliseconds', 'getTime', 'getUTCDay',
'getUTCMilliseconds', 'getYear', 'setDate', 'setFullYear', 'setHours', 'setMilliseconds',
'setMinutes', 'setMonth', 'setSeconds', 'setTime', 'setUTCDate', 'setUTCFullYear',
'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds',