Comparing version 2.0.0-rc7 to 2.0.0-rc8
{ | ||
"name": "vogels", | ||
"version": "2.0.0-rc7", | ||
"version": "2.0.0-rc8", | ||
"author": "Ryan Fitzgerald <ryan@codebrewstudios.com>", | ||
@@ -25,3 +25,3 @@ "description": "DynamoDB data mapper", | ||
"dynamodb-doc": "awslabs/dynamodb-document-js-sdk", | ||
"lodash": "2.4.x", | ||
"lodash": "3.1.x", | ||
"joi": "5.x.x", | ||
@@ -28,0 +28,0 @@ "node-uuid": "1.4.x", |
@@ -558,3 +558,6 @@ 'use strict'; | ||
called = true; | ||
expect(stream.read().Items).to.have.length.above(0); | ||
var data = stream.read(); | ||
if(data) { | ||
expect(data.Items).to.have.length.above(0); | ||
} | ||
}); | ||
@@ -617,4 +620,7 @@ | ||
called = true; | ||
var items = stream.read().Items; | ||
expect(items).to.have.length.within(0, 2); | ||
var data = stream.read(); | ||
if(data) { | ||
expect(data.Items).to.have.length.within(0, 2); | ||
} | ||
}); | ||
@@ -662,3 +668,7 @@ | ||
called = true; | ||
expect(stream.read().Items).to.have.length.above(0); | ||
var data = stream.read(); | ||
if(data) { | ||
expect(data.Items).to.have.length.above(0); | ||
} | ||
}); | ||
@@ -665,0 +675,0 @@ |
@@ -12,3 +12,2 @@ 'use strict'; | ||
assert = require('assert'), | ||
sinon = require('sinon'), | ||
Joi = require('joi'); | ||
@@ -105,4 +104,2 @@ | ||
it('should stream data after handling retryable error', function (done) { | ||
var clock = sinon.useFakeTimers(); | ||
var config = { | ||
@@ -132,5 +129,9 @@ hashKey: 'name', | ||
stream.on('readable', function () { | ||
stream.on('readable', function () { | ||
called = true; | ||
expect(stream.read().Items).to.have.length.above(0); | ||
var data = stream.read(); | ||
if(data) { | ||
expect(data.Items).to.have.length.above(0); | ||
} | ||
}); | ||
@@ -140,8 +141,5 @@ | ||
expect(called).to.be.true; | ||
clock.restore(); | ||
return done(); | ||
}); | ||
clock.tick(2000); | ||
}); | ||
@@ -148,0 +146,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
277864
7436
+ Addedlodash@3.1.0(transitive)
- Removedlodash@2.4.2(transitive)
Updatedlodash@3.1.x