Skip to content

Commit

Permalink
Fix wrong order of resetting data in test helper.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlutsenko committed Feb 27, 2016
1 parent d30c3e9 commit 768a781
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ delete defaultConfiguration.cloud;

// Allows testing specific configurations of Parse Server
var setServerConfiguration = configuration => {
api = new ParseServer(configuration);
server.close();
cache.clearCache();
app = express();
api = new ParseServer(configuration);
app.use('/1', api);
cache.clearCache();
server.close();
server = app.listen(port);
}
};

var restoreServerConfiguration = () => setServerConfiguration(defaultConfiguration);

Expand Down

0 comments on commit 768a781

Please sign in to comment.