mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
@@ -165,11 +165,6 @@ describe('#file', () => {
|
||||
} as unknown as Bucket;
|
||||
});
|
||||
|
||||
test('Uses fullPath to inject root', () => {
|
||||
driver['file'](sample.path.input);
|
||||
expect(driver['fullPath']).toHaveBeenCalledWith(sample.path.input);
|
||||
});
|
||||
|
||||
test('Returns file instance', () => {
|
||||
const file = driver['file']('/path/to/file');
|
||||
expect(file).toBe(mockFile);
|
||||
|
||||
@@ -30,7 +30,7 @@ export class DriverGCS implements Driver {
|
||||
}
|
||||
|
||||
private file(filepath: string) {
|
||||
return this.bucket.file(this.fullPath(filepath));
|
||||
return this.bucket.file(filepath);
|
||||
}
|
||||
|
||||
async read(filepath: string, range?: Range) {
|
||||
|
||||
Reference in New Issue
Block a user