Browse Source

Insert space between comma and next value

saintedlama/travis-non-legacy
Thomas Watson Steen 9 years ago
parent
commit
b00dabbfd9
  1. 2
      test/test-cursor-explain.js
  2. 2
      test/test-cursor-map.js
  3. 6
      test/test-cursor-size.js
  4. 2
      test/test-disinct.js
  5. 2
      test/test-find-cursor-options.js
  6. 2
      test/test-find-cursor.js
  7. 2
      test/test-find-one.js
  8. 2
      test/test-insert.js
  9. 2
      test/test-optional-callback.js
  10. 8
      test/test-runcommand.js
  11. 2
      test/test-save.js
  12. 2
      test/test-simple.js
  13. 2
      test/test-streaming-cursor.js
  14. 2
      test/test-update-multi.js

2
test/test-cursor-explain.js

@ -3,7 +3,7 @@ var insert = require('./insert')
insert('cursor.explain', [{
hello: 'world1'
},{
}, {
hello: 'world2'
}], function (db, t, done) {
var cursor = db.a.find()

2
test/test-cursor-map.js

@ -2,7 +2,7 @@ var insert = require('./insert')
insert('cursor.map', [{
hello: 'world1'
},{
}, {
hello: 'world2'
}], function (db, t, done) {
var cursor = db.a.find()

6
test/test-cursor-size.js

@ -2,11 +2,11 @@ var insert = require('./insert')
insert('cursor.size', [{
hello: 'world1'
},{
}, {
hello: 'world2'
},{
}, {
hello: 'world3'
},{
}, {
hello: 'world4'
}], function (db, t, done) {
db.a.find().skip(1).size(function (err, thesize) {

2
test/test-disinct.js

@ -14,7 +14,7 @@ insert('distinct', [{
goodbye: 'world',
hello: 'space'
}], function (db, t, done) {
db.a.distinct('goodbye',{hello: 'space'},function (err, docs) {
db.a.distinct('goodbye', {hello: 'space'}, function (err, docs) {
t.ok(!err)
t.equal(docs.length, 2)
t.equal(docs[0], 'world')

2
test/test-find-cursor-options.js

@ -2,7 +2,7 @@ var insert = require('./insert')
insert('find cursor options', [{
hello: 'world1'
},{
}, {
hello: 'world2'
}], function (db, t, done) {
var cursor = db.a.find().limit(1).skip(1)

2
test/test-find-cursor.js

@ -2,7 +2,7 @@ var insert = require('./insert')
insert('find cursor', [{
hello: 'world1'
},{
}, {
hello: 'world2'
}], function (db, t, done) {
var cursor = db.a.find()

2
test/test-find-one.js

@ -2,7 +2,7 @@ var insert = require('./insert')
insert('findOne', [{
hello: 'world1'
},{
}, {
hello: 'world2'
}], function (db, t, done) {
db.a.findOne(function (err, doc) {

2
test/test-insert.js

@ -1,6 +1,6 @@
var test = require('./tape')
var mongojs = require('../index')
var db = mongojs('test', ['a','b'])
var db = mongojs('test', ['a', 'b'])
test('insert', function (t) {
db.a.insert([{name: "Squirtle"}, {name: "Charmander"}, {name: "Bulbasaur"}], function (err, docs) {

2
test/test-optional-callback.js

@ -1,6 +1,6 @@
var test = require('./tape')
var mongojs = require('../index')
var db = mongojs('test', ['a','b'])
var db = mongojs('test', ['a', 'b'])
test('optional callback', function (t) {
db.a.ensureIndex({hello: 'world'})

8
test/test-runcommand.js

@ -2,11 +2,11 @@ var insert = require('./insert')
insert('runCommand', [{
hello: "world"
},{
}, {
hello: "world2"
},{
}, {
hello: "world3"
},{
}, {
hello: "world"
}], function (db, t, done) {
db.runCommand({count: "a", query: {}}, function (err, res) {
@ -18,7 +18,7 @@ insert('runCommand', [{
db.runCommand({distinct: 'a', key: "hello", query: {hello: "world"}}, function (err, docs) {
t.equal(docs.values.length, 1)
db.runCommand("ping", function (err, res) {
t.equal(res.ok,1)
t.equal(res.ok, 1)
db.a.runCommand("count", function (err, res) {
t.equal(res.n, 4)
done()

2
test/test-save.js

@ -1,6 +1,6 @@
var test = require('./tape')
var mongojs = require('../index')
var db = mongojs('test', ['a','b'])
var db = mongojs('test', ['a', 'b'])
test('save', function (t) {
db.a.save({hello: "world"}, function (err, doc) {

2
test/test-simple.js

@ -1,6 +1,6 @@
var test = require('./tape')
var mongojs = require('../index')
var db = mongojs('test', ['a','b'])
var db = mongojs('test', ['a', 'b'])
test('simple', function (t) {
db.a.find(function (err, docs) {

2
test/test-streaming-cursor.js

@ -2,7 +2,7 @@ var insert = require('./insert')
insert('streaming cursor', [{
hello: 'world1'
},{
}, {
hello: 'world2'
}], function (db, t, done) {
var cursor = db.a.find()

2
test/test-update-multi.js

@ -2,7 +2,7 @@ var insert = require('./insert')
insert('update multi', [{
hello: 'world1'
},{
}, {
hello: 'world2'
}], function (db, t, done) {
db.a.update({}, {$set: {updated: true}}, {multi: true}, function (err, lastErrorObject) {

Loading…
Cancel
Save