Skip to content

Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.

test: single-word rule names in sweeps and item kinds

Corey Olson3d81cc028879
diff --git a/test/route.test.js b/test/route.test.js
index d6a9ad7c..4417cf22 100644
--- a/test/route.test.js
+++ b/test/route.test.js
@@ -8,6 +8,7 @@ import { featuresOf, routePlan } from '../src/run.js';
test('an item is the kind its brief names, or the rules its sweep listed [N18]', () => {
assert.deepEqual(featuresOf({ item_brief: 'Kind: wiring, test\nFiles:\n- a.js' }), ['test', 'wiring']);
assert.deepEqual(featuresOf({ item_brief: 'Files:\n- a.js\nChange:\n- line 3:1 no-var: x\n- line 9 camelcase: y\n- line 12:2 no-var: z' }), ['camelcase', 'no-var']);
+ assert.deepEqual(featuresOf({ item_brief: 'Files:\n- a.js\nChange:\n- line 17:3: camelcase Name variables in camelCase.\n- line 9: Missing a semicolon' }), ['camelcase']);
assert.deepEqual(featuresOf({ item_brief: 'Files:\n- a.js' }), ['unlabelled']);
});
diff --git a/test/sweep.test.js b/test/sweep.test.js
index 2c7937ad..ce8563cf 100644
--- a/test/sweep.test.js
+++ b/test/sweep.test.js
@@ -24,6 +24,8 @@ test('reads TypeScript and file:line:col reports [N15]', () => {
'./api/server.py:4:1: F401 os imported but unused',
'lib/util.py:9: error: Missing return statement [return]',
'web/a.js:2:1: no-var Unexpected var, use let or const.',
+ 'src/a.js:3:1: camelcase Name variables in camelCase.',
+ 'src/a.js:4:9: unexpected token here',
'/repo/web/b.js:7:3: Expected === and instead saw ==. [Error/eqeqeq]',
'Found 3 errors.',
'warning: something without a place',
@@ -33,6 +35,8 @@ test('reads TypeScript and file:line:col reports [N15]', () => {
{ file: 'api/server.py', line: 4, col: 1, rule: 'F401', message: 'os imported but unused' },
{ file: 'lib/util.py', line: 9, col: 0, rule: 'return', message: 'Missing return statement' },
{ file: 'web/a.js', line: 2, col: 1, rule: 'no-var', message: 'Unexpected var, use let or const.' },
+ { file: 'src/a.js', line: 3, col: 1, rule: 'camelcase', message: 'Name variables in camelCase.' },
+ { file: 'src/a.js', line: 4, col: 9, rule: '', message: 'unexpected token here' },
{ file: 'web/b.js', line: 7, col: 3, rule: 'eqeqeq', message: 'Expected === and instead saw ==.' },
]);
});