2026-02-19 17:37:36 +01:00
|
|
|
const fs = require('node:fs');
|
|
|
|
|
const path = require('node:path');
|
|
|
|
|
|
|
|
|
|
const flow = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../examples/basic.flow.json'), 'utf8'));
|
|
|
|
|
|
2026-03-12 16:46:50 +01:00
|
|
|
describe('dashboardAPI edge example structure', () => {
|
|
|
|
|
it('basic example includes node type dashboardapi', () => {
|
2026-02-19 17:37:36 +01:00
|
|
|
const count = flow.filter((n) => n && n.type === 'dashboardapi').length;
|
2026-03-12 16:46:50 +01:00
|
|
|
expect(count).toBeGreaterThanOrEqual(1);
|
|
|
|
|
});
|
2026-02-19 17:37:36 +01:00
|
|
|
});
|