Permalink
Browse files

fixed tests due to should.js changes

  • Loading branch information...
1 parent a7ff709 commit 09597214c0790689ff0cad5f7d7559e80fbb1434 @tj tj committed Dec 17, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 test/bodyParser.js
  2. +2 −2 test/multipart.js
View
4 test/bodyParser.js
@@ -64,7 +64,7 @@ describe('connect.bodyParser()', function(){
app.use(function(req, res){
req.body.user.should.eql({ name: 'Tobi' });
- req.files.text.path.should.not.include.string('.txt');
+ req.files.text.path.should.not.include('.txt');
req.files.text.constructor.name.should.equal('File');
res.end(req.files.text.name);
});
@@ -96,7 +96,7 @@ describe('connect.bodyParser()', function(){
app.use(function(req, res){
req.body.user.should.eql({ name: 'Tobi' });
- req.files.text.path.should.include.string('.txt');
+ req.files.text.path.should.include('.txt');
req.files.text.constructor.name.should.equal('File');
res.end(req.files.text.name);
});
View
4 test/multipart.js
@@ -51,7 +51,7 @@ describe('connect.multipart()', function(){
app.use(function(req, res){
req.body.user.should.eql({ name: 'Tobi' });
- req.files.text.path.should.not.include.string('.txt');
+ req.files.text.path.should.not.include('.txt');
req.files.text.constructor.name.should.equal('File');
res.end(req.files.text.name);
});
@@ -83,7 +83,7 @@ describe('connect.multipart()', function(){
app.use(function(req, res){
req.body.user.should.eql({ name: 'Tobi' });
- req.files.text.path.should.include.string('.txt');
+ req.files.text.path.should.include('.txt');
req.files.text.constructor.name.should.equal('File');
res.end(req.files.text.name);
});

0 comments on commit 0959721

Please sign in to comment.