Example flows were renamed to the numbered-tier convention (01-Basic.json / 02-Dashboard.json). The structure test still pointed at the old basic.flow.json path. Rewire to the current filename. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
12 lines
449 B
JavaScript
12 lines
449 B
JavaScript
const test = require('node:test');
|
|
const assert = require('node:assert/strict');
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
|
|
const flow = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../examples/02-Dashboard.json'), 'utf8'));
|
|
|
|
test('basic example includes node type machineGroupControl', () => {
|
|
const count = flow.filter((n) => n && n.type === 'machineGroupControl').length;
|
|
assert.equal(count >= 1, true);
|
|
});
|