File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,14 @@ const mockAdapter = {
19
19
} ;
20
20
21
21
describe ( 'Cloud Code' , ( ) => {
22
+ it ( 'can cannot load invalid cloud code' , async ( ) => {
23
+ await expectAsync (
24
+ reconfigureServer ( {
25
+ cloud : true ,
26
+ } )
27
+ ) . toBeRejectedWith ( "argument 'cloud' must either be a string or a function" ) ;
28
+ } ) ;
29
+
22
30
it ( 'can load absolute cloud code file' , done => {
23
31
reconfigureServer ( {
24
32
cloud : __dirname + '/cloud/cloudCodeRelativeFile.js' ,
@@ -59,14 +67,6 @@ describe('Cloud Code', () => {
59
67
expect ( result ) . toBe ( 'Hello world function!' ) ;
60
68
} ) ;
61
69
62
- it ( 'can cannot load invalid cloud code' , async ( ) => {
63
- await expectAsync (
64
- reconfigureServer ( {
65
- cloud : true ,
66
- } )
67
- ) . toBeRejectedWith ( "argument 'cloud' must either be a string or a function" ) ;
68
- } ) ;
69
-
70
70
it ( 'can create functions' , done => {
71
71
Parse . Cloud . define ( 'hello' , ( ) => {
72
72
return 'Hello world!' ;
You can’t perform that action at this time.
0 commit comments