Skip to content

Commit

Permalink
upgrade dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-marcacci committed May 5, 2019
1 parent ce005d0 commit 34eed84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"@babel/preset-env": "^7.3.1",
"babel-eslint": "^10.0.1",
"eslint": "^5.14.1",
"eslint-config-env": "^3.0.0",
"eslint-config-env": "^5.0.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-import-order-alphabetical": "^0.0.1",
"eslint-plugin-import-order-alphabetical": "^0.0.2",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-prettier": "^3.0.0",
"husky": "^1.1.2",
"husky": "^2.2.0",
"leaked-handles": "^5.2.0",
"lint-staged": "^8.1.4",
"prettier": "^1.16.4",
"tap": "^12.5.3"
"tap": "^13.1.2"
},
"scripts": {
"prepare": "npm run prepare:clean && npm run prepare:mjs && npm run prepare:js && npm run prepare:prettier",
Expand Down
15 changes: 9 additions & 6 deletions src/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,15 @@ const withChunkSize = size =>

// Try to create a new read stream
t.test("cannot create a read stream after destruction", t => {
t.throws(
() => capacitor1.createReadStream(),
ReadAfterDestroyedError,
"should not create a read stream once destroyed"
);
t.end();
try {
capacitor1.createReadStream();
} catch (error) {
t.ok(
error instanceof ReadAfterDestroyedError,
"should not create a read stream once destroyed"
);
t.end();
}
});

const capacitor2 = new WriteStream();
Expand Down

0 comments on commit 34eed84

Please sign in to comment.