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(docs): compare demo Git dates by value [I13,A10]

Corey Olsona2514d7c5ad6
diff --git a/docs/shots/demo-env.test.js b/docs/shots/demo-env.test.js
index 58462126..45cd609d 100644
--- a/docs/shots/demo-env.test.js
+++ b/docs/shots/demo-env.test.js
@@ -25,9 +25,10 @@ test('demo Git commits reproduce across homes and inherited emails [I13,A10]', a
await writeFile(join(repo, 'demo.txt'), 'The same synthetic board.\n');
git('add', 'demo.txt');
git('commit', '-q', '-m', 'chore: initialize demo board');
- const identity = git('show', '-s', '--format=%an|%ae|%cn|%ce|%aI|%cI');
- assert.equal(identity, 'Pullboard demo|[email protected]|Pullboard demo|[email protected]|' +
- FIXED_TIME.replace('.000Z', 'Z') + '|' + FIXED_TIME.replace('.000Z', 'Z'));
+ const identity = git('show', '-s', '--format=%an|%ae|%cn|%ce|%aI|%cI').split('|');
+ assert.deepEqual(identity.slice(0, 4), ['Pullboard demo', '[email protected]', 'Pullboard demo', '[email protected]']);
+ assert.equal(new Date(identity[4]).toISOString(), FIXED_TIME);
+ assert.equal(new Date(identity[5]).toISOString(), FIXED_TIME);
commits.push(git('rev-parse', 'HEAD'));
}
assert.equal(commits[0], commits[1], 'home, inherited EMAIL and local Git identity cannot change the demo commit');