Skip to content

Commit

Permalink
Merge pull request #1263 from drew-gross/fix-adapters
Browse files Browse the repository at this point in the history
Fix adapter imports
  • Loading branch information
gfosco committed Mar 29, 2016
2 parents 6be067c + 342a3a9 commit e361ccf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions spec/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,11 @@ describe('server', () => {
expect(typeof ParseServer.default.createLiveQueryServer).toEqual('function');
done();
});

it('exposes all the "core" adapters', done => {
expect(ParseServer.S3Adapter).toThrow("S3Adapter requires option 'accessKey' or env. variable S3_ACCESS_KEY");
expect(ParseServer.GCSAdapter).toThrow('GCSAdapter requires an projectId');
expect(ParseServer.FileSystemAdapter).toThrow();
done();
});
});
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import winston from 'winston';
import ParseServer from './ParseServer';
import { GCSAdapter } from 'parse-server-gcs-adapter';
import { S3Adapter } from 'parse-server-s3-adapter';
import { FileSystemAdapter } from 'parse-server-fs-adapter';
import winston from 'winston';
import ParseServer from './ParseServer';
import GCSAdapter from 'parse-server-gcs-adapter';
import S3Adapter from 'parse-server-s3-adapter';
import FileSystemAdapter from 'parse-server-fs-adapter';

if (process.env.VERBOSE || process.env.VERBOSE_PARSE_SERVER) {
winston.level = 'silly';
Expand Down

0 comments on commit e361ccf

Please sign in to comment.