The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps-engine/tests/test-data/storage/TestSourceStorage.ts

20 lines
577 B

import type { IAppStorageItem } from '../../../src/server/storage';
import { AppSourceStorage } from '../../../src/server/storage';
export class TestSourceStorage extends AppSourceStorage {
public async store(item: IAppStorageItem, zip: Buffer): Promise<string> {
return 'app_package_path';
}
public async fetch(item: IAppStorageItem): Promise<Buffer> {
return Buffer.from('buffer');
}
public async update(item: IAppStorageItem, zip: Buffer): Promise<string> {
return 'updated_path';
}
public async remove(item: IAppStorageItem): Promise<void> {
// yup
}
}