Skip to content

Commit d0caca1

Browse files
committed
[fix] path.existsSync was moved to fs.existsSync
1 parent 0097969 commit d0caca1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/qpixmap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ var app = new qt.QApplication();
4545
// save()
4646
{
4747
var pixmap = new qt.QPixmap(10, 10);
48-
if (path.existsSync('./__pixmap.png'))
48+
if (fs.existsSync('./__pixmap.png'))
4949
fs.unlinkSync('__pixmap.png');
5050
pixmap.save('__pixmap.png');
51-
assert.equal(path.existsSync('./__pixmap.png'), true, '.save() works');
51+
assert.equal(fs.existsSync('./__pixmap.png'), true, '.save() works');
5252
fs.unlinkSync('./__pixmap.png');
5353
}
5454

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var fs = require('fs'),
44
var testDir = __dirname+'/img-test/',
55
refDir = __dirname+'/img-ref/';
66

7-
if (!path.existsSync(testDir)) {
7+
if (!fs.existsSync(testDir)) {
88
console.log('! regression warning: img-test/ dir does not exist. creating it...')
99
fs.mkdirSync(testDir);
1010
}
@@ -15,7 +15,7 @@ exports.regression = function(name, pixmap, callback) {
1515
pixmap.save(testDir+name+'.png');
1616

1717
// Can't compare if refs don't exist
18-
if (!path.existsSync(refDir+name+'.png')) {
18+
if (!fs.existsSync(refDir+name+'.png')) {
1919
console.log('! regression warning: could not find reference file for test:', name)
2020
return;
2121
}

0 commit comments

Comments
 (0)