Skip to content

Commit

Permalink
Breaking: Upgrade flush-write-stream & fix bugged test
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Apr 28, 2020
1 parent 74e611a commit 25f3090
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "nyc mocha --async-only"
},
"dependencies": {
"flush-write-stream": "^1.0.2"
"flush-write-stream": "^2.0.0"
},
"devDependencies": {
"eslint": "^6.8.0",
Expand Down
10 changes: 3 additions & 7 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe('lead', function() {

function assert(err) {
// Forced an object through a non-object stream
expect(err).toExist();
expect(err).toBeTruthy();
done();
}

Expand Down Expand Up @@ -98,9 +98,7 @@ describe('lead', function() {

var readables = 0;
write.on('readable', function() {
var data = write.read();

if (data != null) {
while (write.read()) {
readables++;
}
});
Expand Down Expand Up @@ -171,9 +169,7 @@ describe('lead', function() {
write.on('readable', noop);
var readables = 0;
write.on('readable', function() {
var data = write.read();

if (data != null) {
while (write.read()) {
readables++;
}
});
Expand Down

0 comments on commit 25f3090

Please sign in to comment.