We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230786f commit 84c6416Copy full SHA for 84c6416
test/build.js
@@ -142,14 +142,13 @@ describe('grunt', function() {
142
143
// Ensure the build/html/config directory exists if it should.
144
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
+ var src = fs.existsSync('src/config');
+ if (src) {
+ fs.existsSync('build/html/config', function(exists) {
+ assert.ok(exists);
+ done();
+ });
+ }
153
});
154
155
0 commit comments