feat: Upgrade Parse JS SDK from 6.0.0 to 6.1.0 (#9686)
This commit is contained in:
@@ -302,7 +302,7 @@ describe('Parse.Object testing', () => {
|
||||
|
||||
it('invalid key name', function (done) {
|
||||
const item = new Parse.Object('Item');
|
||||
expect(() => item.set({ 'foo^bar': 'baz' })).toThrow(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: "foo^bar"'));
|
||||
expect(() => item.set({ 'foo^bar': 'baz' })).toThrow(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: foo^bar'));
|
||||
item.save({ 'foo^bar': 'baz' }).then(fail, () => done());
|
||||
});
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ const PostgresStorageAdapter = require('../lib/Adapters/Storage/Postgres/Postgre
|
||||
.default;
|
||||
const MongoStorageAdapter = require('../lib/Adapters/Storage/Mongo/MongoStorageAdapter').default;
|
||||
const RedisCacheAdapter = require('../lib/Adapters/Cache/RedisCacheAdapter').default;
|
||||
const RESTController = require('parse/lib/node/RESTController');
|
||||
const RESTController = require('parse/lib/node/RESTController').default;
|
||||
const { VolatileClassesSchemas } = require('../lib/Controllers/SchemaController');
|
||||
|
||||
const mongoURI = 'mongodb://localhost:27017/parseServerMongoAdapterTestDatabase';
|
||||
|
||||
@@ -2893,7 +2893,7 @@ describe('schemas', () => {
|
||||
object.save({
|
||||
'!12field': 'field',
|
||||
})
|
||||
).toBeRejectedWith(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: "!12field"'));
|
||||
).toBeRejectedWith(new Parse.Error(Parse.Error.INVALID_KEY_NAME, 'Invalid key name: !12field'));
|
||||
done();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user