Skip to content

Commit

Permalink
pify tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 26, 2015
1 parent d13d3c1 commit 9f59e7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"memoize-async": "^1.0.1",
"mkdirp": "^0.5.0",
"object-assign": "^3.0.0",
"pify": "^2.2.0",
"pify": "^2.3.0",
"plur": "^2.0.0",
"protocolify": "^1.0.0",
"rimraf": "^2.2.8",
Expand All @@ -81,7 +81,6 @@
"image-size": "^0.3.3",
"nyc": "^3.2.2",
"path-exists": "^2.0.0",
"pify": "^2.2.0",
"png-js": "^0.1.1",
"rfpify": "^0.1.0",
"xo": "*"
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import pathExists from 'path-exists';
import Pageres from '../dist';
import Server from './_server';

const promiseFs = pify.all(fs);
const fsP = pify(fs);

process.chdir(__dirname);

Expand Down Expand Up @@ -111,7 +111,7 @@ test('save image', async t => {
await new Pageres().src('http://todomvc.com', ['1024x768']).dest(__dirname).run();
t.true(fs.existsSync('todomvc.com-1024x768.png'));
} finally {
await promiseFs.unlink('todomvc.com-1024x768.png');
await fsP.unlink('todomvc.com-1024x768.png');
}
});

Expand Down

0 comments on commit 9f59e7f

Please sign in to comment.