Updates JS SDK to 2.1.0 (#5043)
This commit is contained in:
@@ -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());
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user