Skip to content

Commit 2bd44ba

Browse files
committed
Update CloudCode.Validator.spec.js
1 parent e33ce02 commit 2bd44ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/CloudCode.Validator.spec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1453,11 +1453,13 @@ describe('cloud validator', () => {
14531453
);
14541454
try {
14551455
await Parse.Cloud.run('hello', { data: 'd' });
1456+
fail('validation should have failed');
14561457
} catch (error) {
14571458
expect(error.code).toEqual(Parse.Error.VALIDATION_ERROR);
14581459
expect(error.message).toEqual('Validation failed.');
14591460
}
1460-
await Parse.Cloud.run('hello', { data: 'f' });
1461+
const result = await Parse.Cloud.run('hello', { data: 'f' });
1462+
expect(result).toBe('Hello world!');
14611463
});
14621464

14631465
it('basic beforeSave requireUserKey as custom async function', async () => {

0 commit comments

Comments
 (0)