Skip to content

Commit

Permalink
added unit test for parseTime
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Alabor committed May 13, 2014
1 parent 6eee909 commit 7f0ca48
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/spec/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 7f0ca48

Please sign in to comment.