Kairo-Jinkendo/frontend/src/plan/gateGraphTopology.test.js

16 lines
491 B
JavaScript
Raw Normal View History

import { describe, expect, it } from 'vitest'
import {
DEFERRED_TOPOLOGY_EDGE_KINDS,
DESIGNER_EDGE_KINDS,
} from './gateGraphTopology.js'
describe('gateGraphTopology', () => {
it('keeps designer and deferred edge kinds separate', () => {
expect(DESIGNER_EDGE_KINDS).toContain('requires')
expect(DEFERRED_TOPOLOGY_EDGE_KINDS).toContain('parallel_group')
for (const kind of DEFERRED_TOPOLOGY_EDGE_KINDS) {
expect(DESIGNER_EDGE_KINDS).not.toContain(kind)
}
})
})