[CI] test with 6.10 and 7.10, mongoDB 3.2 and 3.4 (#3787)

* Node modernization on CI

* Makes sure tests dont yeild unhandled promise rejections

* Adds small delay to startDB

* Adds mongodb service

* testing default

* stupid

* testing with silent nugget

* proper versions

* Single release step
This commit is contained in:
Florent Vilmart
2017-05-14 10:50:53 -04:00
committed by GitHub
parent f40019a326
commit ab5b759e26
5 changed files with 51 additions and 56 deletions

View File

@@ -2,7 +2,6 @@
// hungry/js/test/parse_acl_test.js
var rest = require('../src/rest');
var Config = require('../src/Config');
var config = new Config('test');
var auth = require('../src/Auth');
describe('Parse.ACL', () => {
@@ -1235,6 +1234,7 @@ describe('Parse.ACL', () => {
});
it('regression test #701', done => {
const config = new Config('test');
var anonUser = {
authData: {
anonymous: {
@@ -1248,6 +1248,7 @@ describe('Parse.ACL', () => {
var user = req.object;
var acl = new Parse.ACL(user);
user.setACL(acl);
console.log('IN AFTER SAVE!');
user.save(null, {useMasterKey: true}).then(user => {
new Parse.Query('_User').get(user.objectId).then(() => {
fail('should not have fetched user without public read enabled');
@@ -1256,7 +1257,7 @@ describe('Parse.ACL', () => {
expect(error.code).toEqual(Parse.Error.OBJECT_NOT_FOUND);
done();
});
});
}, done.fail);
}
});