Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upgrades, text fix

  • Loading branch information...
commit 06ab3346a43389f7eb097ad68d165af11d506f15 1 parent 2b2e469
@pofallon authored
Showing with 11 additions and 4 deletions.
  1. +1 −0  .travis.yml
  2. +3 −3 package.json
  3. +7 −1 test/test.js
View
1  .travis.yml
@@ -2,3 +2,4 @@ language: node_js
node_js:
- 0.4
- 0.6
+ - 0.8
View
6 package.json
@@ -14,12 +14,12 @@
"main": "index",
"dependencies": {},
"devDependencies": {
- "mocha": "0.x.x",
- "should": "0.x.x",
+ "mocha": "1.x.x",
+ "should": "1.x.x",
"memorystream" : "0.x.x"
},
"engine": "node >= 0.4.1",
- "version": "0.0.2",
+ "version": "0.0.3",
"files": [
"index.js",
"package.json",
View
8 test/test.js
@@ -24,6 +24,8 @@ describe('LoremIpStream', function() {
describe('a stream', function() {
+ var dataWritten = false;
+
it('should be readable', function() {
lorem.readable.should.be.true;
});
@@ -36,8 +38,12 @@ describe('LoremIpStream', function() {
lorem.on('data', function(data) {
data.should.exist;
data.should.not.be.empty;
- done();
+ dataWritten = true;
});
+ lorem.on('end', function() {
+ dataWritten.should.be.true;
+ done();
+ })
lorem.pipe(memory);
});
Please sign in to comment.
Something went wrong with that request. Please try again.