MockHandle Class
Mock implementation of IFluidHandle. \
To use, import via @fluidframework/test-runtime-utils/legacy.
For more information about our API support guarantees, see here.
Signature
export declare class MockHandle<T> extends FluidHandleBase<T>
Extends: FluidHandleBase<T>
Type Parameters
| Parameter | Description |
|---|---|
| T |
Constructors
| Constructor | Alerts | Description |
|---|---|---|
| (constructor)(value, path, absolutePath) | Beta |
Constructs a new instance of the MockHandle class |
Properties
| Property | Alerts | Modifiers | Type | Description |
|---|---|---|---|---|
| absolutePath | Beta |
readonly |
string | |
| isAttached | Beta |
readonly |
boolean | |
| path | Beta |
readonly |
string | |
| value | Beta |
readonly |
T |
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| attachGraph() | Beta |
void | |
| get() | Beta |
Promise<T> |
Constructor Details
(constructor)
Constructs a new instance of the MockHandle class
For more information about our API support guarantees, see here.
Signature
constructor(value: T, path?: string, absolutePath?: string);
Parameters
| Parameter | Modifiers | Type | Description |
|---|---|---|---|
| value | T | ||
| path | optional | string | |
| absolutePath | optional | string |
Property Details
absolutePath
For more information about our API support guarantees, see here.
Signature
readonly absolutePath: string;
Type: string
isAttached
For more information about our API support guarantees, see here.
Signature
get isAttached(): boolean;
Type: boolean
path
For more information about our API support guarantees, see here.
Signature
readonly path: string;
Type: string
value
For more information about our API support guarantees, see here.
Signature
protected readonly value: T;
Type: T
Method Details
attachGraph
For more information about our API support guarantees, see here.
Signature
attachGraph(): void;
get
For more information about our API support guarantees, see here.
Signature
get(): Promise<T>;
Returns
Return type: Promise<T>