Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop nodejs v6.x support
  • Loading branch information
kukhariev committed Jan 4, 2020
1 parent bc3cf97 commit 0319997
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"repository": "kukhariev/diskinfo",
"engines": {
"node": ">= 6.0.0"
"node": ">= 8.0.0"
},
"license": "MIT",
"files": [
Expand All @@ -25,10 +25,7 @@
"main": "lib/index.js",
"typings": "lib/index.d.ts",
"scripts": {
"clean": "rimraf lib",
"ci": "npm run lint && npm run clean && npm run build",
"test": "mocha",
"test:watch": "mocha --watch",
"build": "tsc",
"lint": "tslint -c tslint.json -p tsconfig.json"
},
Expand All @@ -37,10 +34,9 @@
"@types/mocha": "5.2.7",
"@types/node": "10.17.13",
"chai": "4.2.0",
"mocha": "6.2.2",
"rimraf": "3.0.0",
"ts-node": "8.5.4",
"mocha": "7.0.0",
"tslint": "5.20.1",
"ts-node": "8.5.4",
"typescript": "3.7.4"
}
}
3 changes: 3 additions & 0 deletions test/diskinfo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ describe(`diskinfo`, () => {
const dfout = await diskinfo();
expect(dfout[0]).to.include.keys('fstype', 'size', 'used', 'avail', 'pcent', 'target');
});

it('should get current disk info (folder)', async () => {
const dfout = await diskinfo('./');
expect(dfout).to.include.keys('fstype', 'size', 'used', 'avail', 'pcent', 'target');
});

it('should get current disk info (file)', async () => {
const dfout = await diskinfo('package.json');
expect(dfout).to.include.keys('fstype', 'size', 'used', 'avail', 'pcent', 'target');
});

it('should fails if file path is wrong', async () => {
let error: Error;
try {
Expand Down

0 comments on commit 0319997

Please sign in to comment.