2026-02-19 17:38:05 +01:00
|
|
|
const test = require('node:test');
|
|
|
|
|
const assert = require('node:assert/strict');
|
|
|
|
|
const fs = require('node:fs');
|
|
|
|
|
const path = require('node:path');
|
|
|
|
|
|
2026-05-23 15:29:49 +02:00
|
|
|
const flow = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../examples/02-Dashboard.json'), 'utf8'));
|
2026-02-19 17:38:05 +01:00
|
|
|
|
|
|
|
|
test('basic example includes node type machineGroupControl', () => {
|
|
|
|
|
const count = flow.filter((n) => n && n.type === 'machineGroupControl').length;
|
|
|
|
|
assert.equal(count >= 1, true);
|
|
|
|
|
});
|