12 lines
425 B
JavaScript
12 lines
425 B
JavaScript
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
|
|
const flow = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../examples/basic.flow.json'), 'utf8'));
|
|
|
|
describe('dashboardAPI edge example structure', () => {
|
|
it('basic example includes node type dashboardapi', () => {
|
|
const count = flow.filter((n) => n && n.type === 'dashboardapi').length;
|
|
expect(count).toBeGreaterThanOrEqual(1);
|
|
});
|
|
});
|