Skip to content

Commit

Permalink
fix options test
Browse files Browse the repository at this point in the history
  • Loading branch information
A committed Apr 13, 2015
1 parent 4fe05fa commit e4c4dfb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,15 @@ describe('textr', function() {
});

describe('params', function() {
textr({ locale: 'ru' })
.use(function(text, opts) {
return text + opts.locale;
})
.exec('locale: ')
.should.be.equal('locale: ru')
;
it('should pass options through each middleware', function() {
textr({ locale: 'ru' })
.use(function(text, opts) {
return text + opts.locale;
})
.exec('locale: ')
.should.be.equal('locale: ru')
;
});
});


Expand Down

0 comments on commit e4c4dfb

Please sign in to comment.