Skip to content

Commit ae79403

Browse files
committed
refactor
1 parent 269448b commit ae79403

18 files changed

+1684
-3686
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Muhamad Visat Sutarno
3+
Copyright (c) 2019 Muhamad Visat Sutarno
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

jest.config.js

-20
This file was deleted.

package.json

+39-11
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "tsc",
99
"lint": "tslint --project ./tsconfig.json",
1010
"prepublishOnly": "yarn build",
11-
"test": "jest"
11+
"test": "nyc mocha"
1212
},
1313
"repository": {
1414
"type": "git",
@@ -27,20 +27,48 @@
2727
"engines": {
2828
"node": ">=10.0.0"
2929
},
30+
"dependencies": {
31+
"async-rwlock": "^1.0.0",
32+
"emittery": "^0.4.1"
33+
},
3034
"devDependencies": {
31-
"@types/jest": "^23.3.12",
35+
"@types/chai": "^4.1.7",
36+
"@types/chai-as-promised": "^7.1.0",
37+
"@types/mocha": "^5.2.5",
3238
"@types/node": "^10.12.18",
33-
"@types/tmp": "^0.0.33",
34-
"jest": "^23.6.0",
35-
"null-writable": "^1.0.0",
36-
"random-readable": "^1.0.1",
37-
"tmp": "^0.0.33",
38-
"ts-jest": "^23.10.5",
39+
"@types/proxyquire": "^1.3.28",
40+
"@types/sinon": "^7.0.5",
41+
"@types/sinon-chai": "^3.2.2",
42+
"chai": "^4.2.0",
43+
"chai-as-promised": "^7.1.1",
44+
"mocha": "^5.2.0",
45+
"nyc": "^13.1.0",
46+
"proxyquire": "^2.1.0",
47+
"sinon": "^7.2.3",
48+
"sinon-chai": "^3.3.0",
49+
"source-map-support": "^0.5.10",
50+
"ts-node": "^8.0.2",
3951
"tslint": "^5.11.0",
4052
"tslint-eslint-rules": "^5.4.0",
41-
"typescript": "^3.2.2"
53+
"typescript": "^3.2.4"
4254
},
43-
"dependencies": {
44-
"async-rwlock": "^1.0.0"
55+
"nyc": {
56+
"extension": [
57+
".ts"
58+
],
59+
"require": [
60+
"ts-node/register"
61+
],
62+
"include": [
63+
"src/**/*.ts"
64+
],
65+
"exclude": [
66+
"**/*.d.ts"
67+
],
68+
"reporter": [
69+
"text",
70+
"html"
71+
],
72+
"all": true
4573
}
4674
}

src/__tests__/read-stream.spec.ts

-163
This file was deleted.

0 commit comments

Comments
 (0)