Skip to content

Commit

Permalink
add test for time format
Browse files Browse the repository at this point in the history
  • Loading branch information
vipworld committed Sep 12, 2012
1 parent b0c6df0 commit c349cec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/htime.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require('mochiscript');
var assert = require('assert');
var HumanTime = require('./../www/htime');
var htime = new HumanTime();

var now = htime.now();
var mindiff = 1000;

assert.equal(now, htime.now(), 'now is now');

0 comments on commit c349cec

Please sign in to comment.