Files
ruminar-ComfyUI-PromptRando…/tests/runtime_layout.test.mjs
T
るみなー先生 08b86f3683 feat: update project version and description; add runtime state management and server routes
- Bump version to 0.6.0 and enhance project description in pyproject.toml.
- Introduce runtime state management with RuntimeCandidateState and RuntimeCandidateStateStore classes to handle candidate updates and state retrieval.
- Implement server routes for updating and reading runtime candidate states, handling various request scenarios and errors.
- Add tests for runtime layout and prompt random choice functionality, ensuring robust validation and state management.
- Enhance frontend with runtime candidate editor, including UI updates and synchronization with server state.
2026-08-19 20:39:39 +09:00

17 lines
579 B
JavaScript

import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
const source = readFileSync(
new URL("../web/runtime_prompt_random_choice.js", import.meta.url),
"utf8",
);
test("Runtime editor uses resizable DOM widget layout options", () => {
assert.doesNotMatch(source, /domWidget\.computeSize\s*=/);
assert.match(source, /getMinHeight:\s*\(\)\s*=>\s*96/);
assert.match(source, /getHeight:\s*\(\)\s*=>\s*"100%"/);
assert.match(source, /afterResize:/);
assert.match(source, /flex:\s*"1 1 auto"/);
});