Selecting the design-control workflow now repeats the server rule: business handover must finish with an approved CDO quote first. Other workflows stay quiet. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
495 B
TypeScript
11 lines
495 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { RDEV_PREREQUISITE_MESSAGE, workflowPrerequisiteMessage } from './workflowPrerequisite';
|
|
|
|
test('rdev selection explains the CDO prerequisite', () => {
|
|
assert.equal(workflowPrerequisiteMessage('rdev'), RDEV_PREREQUISITE_MESSAGE);
|
|
assert.match(RDEV_PREREQUISITE_MESSAGE, /CDO/);
|
|
assert.equal(workflowPrerequisiteMessage(' main '), null);
|
|
assert.equal(workflowPrerequisiteMessage('product_manager'), null);
|
|
});
|