From f01b8a6ba0b157f3e6562d11158bc3050a75d61a Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Tue, 23 Jun 2015 12:47:26 -0700 Subject: [PATCH] Fix iojs error in tests --- test/streams.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/streams.js b/test/streams.js index 8454993..8f8b857 100644 --- a/test/streams.js +++ b/test/streams.js @@ -31,7 +31,10 @@ describe('strong-remoting', function() { it('should stream the file output', function(done) { remotes.fs = fs; fs.createReadStream.shared = true; - fs.createReadStream.accepts = [{arg: 'path', type: 'string'}]; + fs.createReadStream.accepts = [ + { arg: 'path', type: 'string' }, + { arg: 'encoding', type: 'string' } + ]; fs.createReadStream.returns = {arg: 'res', type: 'stream'}; fs.createReadStream.http = { verb: 'get', @@ -41,7 +44,7 @@ describe('strong-remoting', function() { } }; - json('get', '/fs/createReadStream?path=' + __dirname + '/data/foo.json') + json('get', '/fs/createReadStream?path=' + __dirname + '/data/foo.json&encoding=utf8') .expect({bar: 'baz'}, done); }); });