From 7f0ca4843d658cb9b1d4673d6238a74a63ca7cb3 Mon Sep 17 00:00:00 2001 From: Manuel Alabor Date: Tue, 13 May 2014 20:01:58 +0200 Subject: [PATCH] added unit test for parseTime --- test/spec/parser.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/spec/parser.js b/test/spec/parser.js index e1d6c0f..9167da6 100644 --- a/test/spec/parser.js +++ b/test/spec/parser.js @@ -2,6 +2,16 @@ describe('Parser', function() { var parser = require('../../lib/parser'); + describe('parseTime', function() { + it('should return an instance of timejs', function() { + var time = parser.parseTime('12:00'); + + expect(time.hours).to.be.a(Function); + expect(time.minutes).to.be.a(Function); + expect(time.period).to.be.a(Function); + }); + }); + describe('parseDay', function() { it('should be a function', function() { expect(parser.parseDay).to.be.a('function');