()
| 2909 | const fieldName = '1invalid'; |
| 2910 | |
| 2911 | const schemaCreation = () => |
| 2912 | schemaController.addClassIfNotExists('AnObject', { |
| 2913 | [fieldName]: { __type: 'String' }, |
| 2914 | }); |
| 2915 | |
| 2916 | await expectAsync(schemaCreation()).toBeRejectedWith( |
| 2917 | new Parse.Error(Parse.Error.INVALID_KEY_NAME, `invalid field name: ${fieldName}`) |
no test coverage detected