Update tests and ensure tests are run regardless of exp flag

This commit is contained in:
Peter Theill
2016-02-11 01:32:38 +01:00
parent 930573bb47
commit 1d576bcc9f
3 changed files with 5 additions and 25 deletions

View File

@@ -27,7 +27,7 @@ function updateGlobalConfig(req) {
}
return req.config.database.rawCollection('_GlobalConfig')
.then(coll => coll.findOneAndUpdate({ _id: 1 }, { $set: req.body }, { returnOriginal: false }))
.then(coll => coll.findOneAndUpdate({ _id: 1 }, { $set: req.body }))
.then(response => {
return { response: { result: true } }
})

View File

@@ -121,7 +121,7 @@ function ParseServer(args) {
router.merge(require('./installations'));
router.merge(require('./functions'));
router.merge(require('./schemas'));
if (process.env.PARSE_EXPERIMENTAL_CONFIG_ENABLED) {
if (process.env.PARSE_EXPERIMENTAL_CONFIG_ENABLED || process.env.TESTING) {
router.merge(require('./global_config'));
}