Skip to content

Commit 84c6416

Browse files
committed
Updating the test (build.js) to use fs.existsSync for my test
1 parent 230786f commit 84c6416

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/build.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,13 @@ describe('grunt', function() {
142142

143143
// Ensure the build/html/config directory exists if it should.
144144
it('config directory should exist if provided ', function(done) {
145-
fs.exists('src/config', function(exists) {
146-
if (exists) {
147-
fs.exists('build/html/config', function(exists) {
148-
assert.ok(exists);
149-
done();
150-
});
151-
}
152-
});
145+
var src = fs.existsSync('src/config');
146+
if (src) {
147+
fs.existsSync('build/html/config', function(exists) {
148+
assert.ok(exists);
149+
done();
150+
});
151+
}
153152
});
154153
});
155154

0 commit comments

Comments
 (0)