UNPKG

scriptable-testlab

Version:

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

50 lines 1.53 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var script_exports = {}; __export(script_exports, { MockScript: () => MockScript }); module.exports = __toCommonJS(script_exports); var import_scriptable_abstract = require("scriptable-abstract"); const DEFAULT_STATE = { name: "" }; class MockScript extends import_scriptable_abstract.AbsScript { static get instance() { return super.instance; } constructor() { super(DEFAULT_STATE); } name() { return this.state.name; } complete() { } setShortcutOutput(value) { this.setState({ shortcutOutput: value }); } setWidget(widget) { this.setState({ widget }); } } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { MockScript }); //# sourceMappingURL=script.js.map