Files
DndGamePlayer/app/renderer/editor/graph/sceneGraph.contextMenu.test.ts
T
Ivan Fontosh ca0cf9c0ce fix(control): improve storyline history and graph launch
Append history on revisit instead of truncating, highlight the latest duplicate entry, add Start from this scene to the graph context menu, and keep storyline state isolated from project graph edits.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 19:14:01 +08:00

19 lines
659 B
TypeScript

import assert from 'node:assert/strict';
import fs from 'node:fs';
import path from 'node:path';
import test from 'node:test';
import { fileURLToPath } from 'node:url';
const here = path.dirname(fileURLToPath(import.meta.url));
function readSceneGraph(): string {
return fs.readFileSync(path.join(here, 'SceneGraph.tsx'), 'utf8');
}
void test('SceneGraph: контекстное меню узла — «Запустить с этой сцены»', () => {
const src = readSceneGraph();
assert.ok(src.includes('runFromScene'));
assert.ok(src.includes('onRunFromGraphNode'));
assert.ok(src.includes('onRunFromGraphNode?.(menu.graphNodeId)'));
});