Skip to content

Commit 0cc5c26

Browse files
committed
fix: ESLint errors in Cloud Code tests
1 parent b09807b commit 0cc5c26

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

types/tests.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,12 +2289,6 @@ function test_cloud_server_functions() {
22892289
}
22902290
});
22912291

2292-
// Define with FunctionResponse (Express-style)
2293-
ParseNode.Cloud.define('expressStyleFunc', (request, response) => {
2294-
response.success({ data: 'value' });
2295-
response.error('Something went wrong');
2296-
});
2297-
22982292
// ============================================================================
22992293
// Object Lifecycle Triggers
23002294
// ============================================================================
@@ -2313,7 +2307,7 @@ function test_cloud_server_functions() {
23132307
});
23142308

23152309
// afterSave
2316-
ParseNode.Cloud.afterSave('TestClass', async (request) => {
2310+
ParseNode.Cloud.afterSave('TestClass', (request) => {
23172311
const obj = request.object;
23182312
const original = request.original;
23192313
const context = request.context;
@@ -2447,7 +2441,7 @@ function test_cloud_server_functions() {
24472441
// ============================================================================
24482442

24492443
// httpRequest
2450-
ParseNode.Cloud.httpRequest({
2444+
void ParseNode.Cloud.httpRequest({
24512445
url: 'https://example.com',
24522446
method: 'POST',
24532447
headers: { 'Content-Type': 'application/json' },
@@ -2461,7 +2455,7 @@ function test_cloud_server_functions() {
24612455
});
24622456

24632457
// sendEmail
2464-
ParseNode.Cloud.sendEmail({
2458+
void ParseNode.Cloud.sendEmail({
24652459
to: 'test@example.com',
24662460
from: 'noreply@example.com',
24672461
subject: 'Test',
@@ -2480,5 +2474,5 @@ function test_cloud_server_functions() {
24802474
// @ts-expect-error - job should not exist on browser Parse.Cloud
24812475
Parse.Cloud.job('test', () => {});
24822476
// @ts-expect-error - httpRequest should not exist on browser Parse.Cloud
2483-
Parse.Cloud.httpRequest({ url: '' });
2477+
void Parse.Cloud.httpRequest({ url: '' });
24842478
}

0 commit comments

Comments
 (0)