MockObjectStorageService Class
Mock implementation of IChannelStorageService
Signature
export declare class MockObjectStorageService implements IChannelStorageService
Implements: IChannelStorageService
Constructors
Constructor | Description |
---|---|
(constructor)(contents) | Constructs a new instance of the MockObjectStorageService class |
Methods
Method | Return Type | Description |
---|---|---|
contains(path) | Promise<boolean> | |
list(path) | Promise<string[]> | |
readBlob(path) | Promise<ArrayBufferLike> |
Constructor Details
(constructor)
Constructs a new instance of the MockObjectStorageService
class
Signature
constructor(contents: {
[key: string]: string;
});
Parameters
Parameter | Type | Description |
---|---|---|
contents | { [key: string]: string; } |
Method Details
contains
Signature
contains(path: string): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<boolean>
list
Signature
list(path: string): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<string[]>
readBlob
Signature
readBlob(path: string): Promise<ArrayBufferLike>;
Parameters
Parameter | Type | Description |
---|---|---|
path | string |
Returns
Return type: Promise<ArrayBufferLike>