Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Adding check for existing test db file and remove it in the before block
Browse files Browse the repository at this point in the history
  • Loading branch information
sashman committed Apr 25, 2017
1 parent 098effe commit 3f787bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integration/client/run.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ describe('Client.Run Integration Test', function () {
before(function (done) {
port = 8378
dbPath = 'test/integration/api/provider.json'
if(fs.existsSync(dbPath)){
fs.unlinkSync(dbPath)
}
options = {
port: port,
quiet: true,
Expand Down

0 comments on commit 3f787bb

Please sign in to comment.