Skip to content

Commit 85658c1

Browse files
committed
more improvements to composition handling and test cases... creating nested compositions from the UI is still an issue though
1 parent 29442c1 commit 85658c1

File tree

11 files changed

+3220
-235
lines changed

11 files changed

+3220
-235
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* @vitest-environment node
3+
**/
4+
import { expect, test, vi } from 'vitest';
5+
import { flow } from './flows/adventofcodepuzzle1a';
6+
import { RuntimeFlowEngine } from '@devhelpr/web-flow-executor';
7+
8+
describe('adventofcodepuzzle1a flow', () => {
9+
test('runs adventofcodepuzzle1a flow', async () => {
10+
const flowEngine = new RuntimeFlowEngine();
11+
flowEngine.initialize(flow.flows.flow.nodes, flow.compositions);
12+
const result = await flowEngine.run();
13+
expect(result).toStrictEqual(11);
14+
});
15+
});

0 commit comments

Comments
 (0)