(mode, sceneText = "")
| 69 | } |
| 70 | |
| 71 | export function getRecordSceneValues(mode, sceneText = "") { |
| 72 | const custom = sanitizeSceneText(sceneText); |
| 73 | if (custom.length > 0) { |
| 74 | return Object.freeze([custom, `${custom} [2]`, `${custom} [3]`]); |
| 75 | } |
| 76 | |
| 77 | if (mode === "widget") { |
| 78 | return Object.freeze(["Live Update One", "Live Update Two", "Live Update Three"]); |
| 79 | } |
| 80 | if (mode === "router") { |
| 81 | return Object.freeze(["Router Update One", "Router Update Two", "Router Update Three"]); |
| 82 | } |
| 83 | throw new Error("mode must be widget or router"); |
| 84 | } |
| 85 | |
| 86 | function sleep(ms) { |
| 87 | return new Promise((resolveSleep) => { |
no test coverage detected