Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
puckey committed Jan 7, 2016
1 parent 3750c1f commit 05e60df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ var assert = require('assert');
var pad = require('../index');

describe('pad', function(){
it('passing 0 should work', function(){
assert.equal('0000', pad(0, 4));
});

it('should return a padded version of the number as a string using leading zeroes', function(){
assert.equal('0010', pad(10, 4));
});
Expand Down

0 comments on commit 05e60df

Please sign in to comment.