Update tests and ensure tests are run regardless of exp flag
This commit is contained in:
@@ -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 } }
|
||||
})
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user