diff options
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js index b00aa631..23f06887 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -328,3 +328,16 @@ describe('angular service', function() { expect(result.third).toBeTruthy(); }); }); + +describe('isDate', function() { + it('should return true for Date object', function() { + expect(isDate(new Date())).toBe(true); + }); + + it('should return false for non Date objects', function() { + expect(isDate([])).toBe(false); + expect(isDate('')).toBe(false); + expect(isDate(23)).toBe(false); + expect(isDate({})).toBe(false); + }); +}); |
