Fix adapter imports

This commit is contained in:
Drew Gross
2016-03-29 14:58:44 -07:00
parent 6be067cff5
commit 342a3a92fe
2 changed files with 12 additions and 5 deletions

View File

@@ -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();
});
});