feat: Upgrade to Parse JS SDK 6.0.0 (#9624)
BREAKING CHANGE: This upgrades to the Parse JS SDK 6.0.0. See the [change log](https://github.com/parse-community/Parse-SDK-JS/releases/tag/6.0.0) of the Parse JS SDK for breaking changes and more details.
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');
|
||||
ok(!item.set({ 'foo^bar': 'baz' }), 'Item should not be updated with invalid key.');
|
||||
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());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user