Skip to content

Commit 8614650

Browse files
author
Azat Mardanov
committed
fix commas
1 parent 76ece78 commit 8614650

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ch8/rest-express/test/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ describe('express rest api server', function(){
66

77
it('post object', function(done){
88
superagent.post('http://localhost:3000/collections/test')
9-
.send({ name: 'John'
10-
, email: '[email protected]'
9+
.send({ name: 'John',
10+
1111
})
1212
.end(function(e,res){
1313
// console.log(res.body)
@@ -44,8 +44,8 @@ describe('express rest api server', function(){
4444

4545
it('updates an object', function(done){
4646
superagent.put('http://localhost:3000/collections/test/'+id)
47-
.send({name: 'Peter'
48-
, email: '[email protected]'})
47+
.send({name: 'Peter',
48+
email: '[email protected]'})
4949
.end(function(e, res){
5050
// console.log(res.body)
5151
expect(e).to.eql(null)

ch8/rest-hapi/test/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ describe('express rest api server', function(){
66

77
it('post object', function(done){
88
superagent.post('http://localhost:3000/collections/test')
9-
.send({ name: 'John'
10-
, email: '[email protected]'
9+
.send({ name: 'John',
10+
1111
})
1212
.end(function(e,res){
1313
// console.log(res.body)
@@ -44,8 +44,8 @@ describe('express rest api server', function(){
4444

4545
it('updates an object', function(done){
4646
superagent.put('http://localhost:3000/collections/test/'+id)
47-
.send({name: 'Peter'
48-
, email: '[email protected]'})
47+
.send({name: 'Peter',
48+
email: '[email protected]'})
4949
.end(function(e, res){
5050
// console.log(res.body)
5151
expect(e).to.eql(null)

0 commit comments

Comments
 (0)