Skip to content

Commit

Permalink
add tests to support string.prototype methods
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Apr 18, 2015
1 parent 3e68629 commit 9abb956
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ describe('textr', function() {
;
});

it('should support string.prototype methods', function() {
var tf = textr()
.use(String.prototype.trim)
;
tf('text\t\n').should.be.equal('text');
});

});

describe('exec', function() {
Expand Down

0 comments on commit 9abb956

Please sign in to comment.