aboutsummaryrefslogtreecommitdiffstats
path: root/test/angular-mocksSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-07 21:54:01 -0800
committerMisko Hevery2011-11-14 20:31:14 -0800
commit78c7066422a9c800e7d527a4ed588a138a326551 (patch)
tree2965246a680bb68fda97496fdd9f6161631e9e73 /test/angular-mocksSpec.js
parent923da410bd57481be67d3d5039245929498e94ac (diff)
downloadangular.js-78c7066422a9c800e7d527a4ed588a138a326551.tar.bz2
refactor(angular): isDate / isArray test iframe independent fix
Diffstat (limited to 'test/angular-mocksSpec.js')
-rw-r--r--test/angular-mocksSpec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js
index 1668d500..7b28c408 100644
--- a/test/angular-mocksSpec.js
+++ b/test/angular-mocksSpec.js
@@ -7,6 +7,11 @@ describe('mocks', function() {
return min*60*1000;
}
+ it('should look like a Date', function() {
+ var date = new angular.mock.TzDate(0,0);
+ expect(angular.isDate(date)).toBe(true);
+ });
+
it('should take millis as constructor argument', function() {
expect(new angular.mock.TzDate(0, 0).getTime()).toBe(0);
expect(new angular.mock.TzDate(0, 1283555108000).getTime()).toBe(1283555108000);