Skip to content

Commit

Permalink
Updating the test (build.js) to use fs.existsSync for my test
Browse files Browse the repository at this point in the history
  • Loading branch information
scottalan committed Oct 24, 2017
1 parent 230786f commit 84c6416
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,13 @@ describe('grunt', function() {

// Ensure the build/html/config directory exists if it should.
it('config directory should exist if provided ', function(done) {
fs.exists('src/config', function(exists) {
if (exists) {
fs.exists('build/html/config', function(exists) {
assert.ok(exists);
done();
});
}
});
var src = fs.existsSync('src/config');
if (src) {
fs.existsSync('build/html/config', function(exists) {
assert.ok(exists);
done();
});
}
});
});

Expand Down

0 comments on commit 84c6416

Please sign in to comment.