From 78c7066422a9c800e7d527a4ed588a138a326551 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 7 Nov 2011 21:54:01 -0800 Subject: refactor(angular): isDate / isArray test iframe independent fix --- test/angular-mocksSpec.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/angular-mocksSpec.js') 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); -- cgit v1.2.3