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 = {
1919} ;
2020
2121describe ( '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+
2230 it ( 'can load absolute cloud code file' , done => {
2331 reconfigureServer ( {
2432 cloud : __dirname + '/cloud/cloudCodeRelativeFile.js' ,
@@ -59,14 +67,6 @@ describe('Cloud Code', () => {
5967 expect ( result ) . toBe ( 'Hello world function!' ) ;
6068 } ) ;
6169
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-
7070 it ( 'can create functions' , done => {
7171 Parse . Cloud . define ( 'hello' , ( ) => {
7272 return 'Hello world!' ;
You can’t perform that action at this time.
0 commit comments