From e4c4dfb4de2139af03b69ab5e8bdb001b8f90487 Mon Sep 17 00:00:00 2001 From: Shuvalov Anton Date: Mon, 13 Apr 2015 18:15:46 +0300 Subject: [PATCH] fix options test --- test/index.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/test/index.js b/test/index.js index dfe2411..7977b9a 100644 --- a/test/index.js +++ b/test/index.js @@ -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') + ; + }); });