()
| 78 | it_id('dade10c8-2b9c-4f43-bb3f-a13bbd82ac22')(it)('fullTextSearch: $search, invalid input', async () => { |
| 79 | await fullTextHelper(); |
| 80 | const invalidQuery = async () => { |
| 81 | const where = { |
| 82 | subject: { |
| 83 | $text: { |
| 84 | $search: true, |
| 85 | }, |
| 86 | }, |
| 87 | }; |
| 88 | try { |
| 89 | await request({ |
| 90 | method: 'POST', |
| 91 | url: 'http://localhost:8378/1/classes/TestObject', |
| 92 | body: { where, _method: 'GET' }, |
| 93 | headers: { |
| 94 | 'X-Parse-Application-Id': 'test', |
| 95 | 'X-Parse-REST-API-Key': 'rest', |
| 96 | 'Content-Type': 'application/json', |
| 97 | }, |
| 98 | }); |
| 99 | } catch (e) { |
| 100 | throw new Parse.Error(e.data.code, e.data.error); |
| 101 | } |
| 102 | }; |
| 103 | await expectAsync(invalidQuery()).toBeRejectedWith( |
| 104 | new Parse.Error(Parse.Error.INVALID_JSON, 'bad $text: $search, should be object') |
| 105 | ); |
no test coverage detected