From acfaee2fb0c3128f645d913e69cc3f46d430d5e4 Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Mon, 15 Jul 2013 10:56:42 -0700 Subject: [PATCH] Remove data argument name from user tests --- test/user.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/user.test.js b/test/user.test.js index c455efe2..91f02166 100644 --- a/test/user.test.js +++ b/test/user.test.js @@ -5,6 +5,7 @@ var passport = require('passport'); var userMemory = asteroid.createDataSource({ connector: asteroid.Memory }); + asteroid.User.attachTo(userMemory); asteroid.User.session.attachTo(userMemory); asteroid.User.email.setup({transports: [{type: 'STUB'}]}); @@ -201,7 +202,7 @@ describe('User', function(){ .post('/users') .expect('Content-Type', /json/) .expect(200) - .send({data: {email: 'bar@bat.com', password: 'bar'}}) + .send({email: 'bar@bat.com', password: 'bar'}) .end(function(err, res){ if(err) return done(err); }); @@ -240,7 +241,7 @@ describe('User', function(){ .post('/users') .expect('Content-Type', /json/) .expect(302) - .send({data: {email: 'bar@bat.com', password: 'bar'}}) + .send({email: 'bar@bat.com', password: 'bar'}) .end(function(err, res){ if(err) return done(err); });