File tree 2 files changed +12
-5
lines changed 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -239,4 +239,11 @@ describe('server', () => {
239
239
expect ( typeof ParseServer . default . createLiveQueryServer ) . toEqual ( 'function' ) ;
240
240
done ( ) ;
241
241
} ) ;
242
+
243
+ it ( 'exposes all the "core" adapters' , done => {
244
+ expect ( ParseServer . S3Adapter ) . toThrow ( "S3Adapter requires option 'accessKey' or env. variable S3_ACCESS_KEY" ) ;
245
+ expect ( ParseServer . GCSAdapter ) . toThrow ( 'GCSAdapter requires an projectId' ) ;
246
+ expect ( ParseServer . FileSystemAdapter ) . toThrow ( ) ;
247
+ done ( ) ;
248
+ } ) ;
242
249
} ) ;
Original file line number Diff line number Diff line change 1
- import winston from 'winston' ;
2
- import ParseServer from './ParseServer' ;
3
- import { GCSAdapter } from 'parse-server-gcs-adapter' ;
4
- import { S3Adapter } from 'parse-server-s3-adapter' ;
5
- import { FileSystemAdapter } from 'parse-server-fs-adapter' ;
1
+ import winston from 'winston' ;
2
+ import ParseServer from './ParseServer' ;
3
+ import GCSAdapter from 'parse-server-gcs-adapter' ;
4
+ import S3Adapter from 'parse-server-s3-adapter' ;
5
+ import FileSystemAdapter from 'parse-server-fs-adapter' ;
6
6
7
7
if ( process . env . VERBOSE || process . env . VERBOSE_PARSE_SERVER ) {
8
8
winston . level = 'silly' ;
You can’t perform that action at this time.
0 commit comments