Permalink
Browse files

synchronous file check

  • Loading branch information...
John Hewson
John Hewson committed Sep 30, 2011
1 parent 3a15ac8 commit 1dd41b64515618714523bee98ff620fb0f23156a
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/node-deflate-test.js
@@ -8,7 +8,7 @@ function testOnePassDeflate(format, extension, test) {
var inPath = path.join(__dirname, 'andromeda.bmp');
var outPath = path.join(__dirname, 'temp.' + extension);
- if (path.exists(outPath)) {
+ if (path.existsSync(outPath)) {
fs.unlinkSync(outPath);
}
@@ -24,7 +24,7 @@ function testStreamingDeflate(format, extension, test) {
var input = fs.createReadStream(path.join(__dirname, 'andromeda.bmp'));
var outPath = path.join(__dirname, 'temp.' + extension);
- if (path.exists(outPath)) {
+ if (path.existsSync(outPath)) {
fs.unlinkSync(outPath);
}
@@ -64,7 +64,7 @@ function testOnePassInflate(format, extension, test) {
var inPath = path.join(__dirname, 'andromeda.bmp.' + extension);
var outPath = path.join(__dirname, 'temp_' + extension + '.bmp');
- if (path.exists(outPath)) {
+ if (path.existsSync(outPath)) {
fs.unlinkSync(outPath);
}
@@ -82,7 +82,7 @@ function testStreamingInflate(format, extension, test) {
var outPath = path.join(__dirname, 'temp_' + extension + '.bmp');
- if (path.exists(outPath)) {
+ if (path.existsSync(outPath)) {
fs.unlinkSync(outPath);
}

0 comments on commit 1dd41b6

Please sign in to comment.