Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Apr 18, 2015
1 parent 08b1a9c commit 15b8604
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@ tf('Hello "world"...\n'); // Hello «world»…

## API

### textr()
### textr(defaults)

Create new textr transform function (`tf`). You can pass default options when
create new transform stack.

Create new textr transform function (`tf`).

### tf.use(...fn)

Register transform function as `tf` middleware.

### tf.exec(text)
### tf.exec(text, options)

Process given text by the middlewares.

Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('textr', function() {
});

it('should support options to correct recursive usage', function() {
var pluginWithDefaultOptions = textr({ locale: 'ru', owner: true })
var pluginWithDefaultOptions = textr({ locale: 'ru', ownprop: true })
.use(function(text, options) {
options.locale.should.be.equal('en-us');
options.direction.should.be.equal('ltr');
Expand Down

0 comments on commit 15b8604

Please sign in to comment.