mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
* add tests to drive * add azure test runner * add gcs test runner * add s3 test runner * quick changes * Re-add npm run dev Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
28 lines
663 B
TypeScript
28 lines
663 B
TypeScript
import { StorageManager } from '@directus/drive';
|
|
import { AzureBlobWebServicesStorage } from '../src';
|
|
|
|
describe('drive', function () {
|
|
it('Instantiate', function () {
|
|
const storage = new StorageManager({
|
|
default: 'azure',
|
|
disks: {
|
|
remote: {
|
|
driver: 'azure',
|
|
config: {
|
|
containerName: 'containerName',
|
|
accountName: 'accountName',
|
|
accountKey: 'accountKey',
|
|
endpoint: 'http://localhost/accountName',
|
|
root: '/',
|
|
},
|
|
},
|
|
},
|
|
});
|
|
|
|
storage.registerDriver('azure', AzureBlobWebServicesStorage);
|
|
|
|
const disk = storage.disk('remote');
|
|
expect(disk).toBeInstanceOf(AzureBlobWebServicesStorage);
|
|
});
|
|
});
|