Updates JS SDK to 2.1.0 (#5043)

This commit is contained in:
Florent Vilmart
2018-09-08 20:05:32 -04:00
committed by GitHub
parent a3d6d2498c
commit 576779b69b
9 changed files with 2570 additions and 2581 deletions

View File

@@ -115,7 +115,7 @@ describe('Parse.Polygon testing', () => {
const query = new Parse.Query(TestObject);
return query.get(obj.id);
})
.then(done.fail, done);
.then(done.fail, () => done());
});
it('polygon three points minimum', done => {
@@ -123,14 +123,14 @@ describe('Parse.Polygon testing', () => {
const obj = new TestObject();
// use raw so we test the server validates properly
obj.set('polygon', { __type: 'Polygon', coordinates: coords });
obj.save().then(done.fail, done);
obj.save().then(done.fail, () => done());
});
it('polygon three different points minimum', done => {
const coords = [[0, 0], [0, 1], [0, 0]];
const obj = new TestObject();
obj.set('polygon', new Parse.Polygon(coords));
obj.save().then(done.fail, done);
obj.save().then(done.fail, () => done());
});
it('polygon counterclockwise', done => {
@@ -398,6 +398,6 @@ describe_only_db('mongo')('Parse.Polygon testing', () => {
const coords = [[0, 0], [0, 1], [1, 0], [1, 1]];
const obj = new TestObject();
obj.set('polygon', new Parse.Polygon(coords));
obj.save().then(done.fail, done);
obj.save().then(done.fail, () => done());
});
});