Skip to content

Commit

Permalink
add test: when array given
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Jan 23, 2015
1 parent 0f3c613 commit 7cd1125
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ describe('stringify-github-short-url:', function() {
assert.throws(fixture, TypeError);
done();
});

it('TypeError when Array given', function(done) {
function fixture() {
stringify(['some string'])
}
assert.throws(fixture, TypeError);
done();
});
});

describe('should return empty string', function(done) {
Expand Down

0 comments on commit 7cd1125

Please sign in to comment.