Skip to content

Commit

Permalink
add test to use textr itself as transform for textr
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Apr 11, 2015
1 parent 00893b7 commit b3be892
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ describe('textr', function() {
;
});

it('should use itself as transform', function() {
var one = textr()
.use(capitalize)
;
var two = textr()
.use(headline(1))
;
var tf = textr()
.use(one, two)
.parse('hello world')
.should.be.equal('<h1>Hello World</h1>')
;
});

});

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

0 comments on commit b3be892

Please sign in to comment.