(oref: string, obj: T)
| 58 | const previewMockObjects: Map<string, WaveObj> = new Map(); |
| 59 | |
| 60 | function mockObjectForPreview<T extends WaveObj>(oref: string, obj: T): void { |
| 61 | if (!isPreviewWindow()) { |
| 62 | throw new Error("mockObjectForPreview can only be called in a preview window"); |
| 63 | } |
| 64 | previewMockObjects.set(oref, obj); |
| 65 | } |
| 66 | |
| 67 | function GetObject<T>(oref: string): Promise<T> { |
| 68 | if (isPreviewWindow()) { |
nothing calls this directly
no test coverage detected