UNPKG

scriptable-testlab

Version:

A lightweight, efficient tool designed to manage and update scripts for Scriptable.

48 lines 760 B
import { AbsModule } from "scriptable-abstract"; class MockModule extends AbsModule { static get instance() { return super.instance; } constructor() { super({ filename: "mock-module.js", exports: {} }); } /** * @inheritdoc */ get filename() { return this.state.filename; } /** * @inheritdoc */ get exports() { return this.state.exports; } /** * @additional * Set the module filename */ setFilename(filename) { this.setState({ ...this.state, filename }); } /** * @additional * Set module exports */ setExports(exports) { this.setState({ ...this.state, exports }); } } export { MockModule }; //# sourceMappingURL=module.js.map