@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
12 lines • 502 B
TypeScript
export interface OSStub {
/** Changes the value of the stubbed property. */
value(value: boolean): OSStub;
/** Restores the value the property had before it was stubbed. */
restore(): void;
}
/**
* Stubs `isWindows` or `isOSX` of the `os` module, similar to `sinon.stub(os, property).value(value)`,
* which is not possible for the exports of ES modules.
*/
export declare function stubOS(property: 'isWindows' | 'isOSX', value: boolean): OSStub;
//# sourceMappingURL=stub-os.d.ts.map