Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
GBRA-346: install-ref test and guard fixture follow INSTALL_REF = stable
garrytanfc04d007d724
diff --git a/test/fixtures/guards/check-install-ref.ts/good/README.md b/test/fixtures/guards/check-install-ref.ts/good/README.mdindex cef6e20638..7095d182a9 100644--- a/test/fixtures/guards/check-install-ref.ts/good/README.md+++ b/test/fixtures/guards/check-install-ref.ts/good/README.md@@ -1 +1 @@-Install: `bun install -g github:garrytan/gbrain#latest-stable`, or pin `github:garrytan/gbrain#v0.60.1.0`.+Install: `bun install -g github:garrytan/gbrain#stable`, or pin `github:garrytan/gbrain#v0.60.1.0`.diff --git a/test/install-ref.test.ts b/test/install-ref.test.tsindex f1a7149923..c88b2280b0 100644--- a/test/install-ref.test.ts+++ b/test/install-ref.test.ts@@ -9,10 +9,10 @@ import { driftIn, findInstallRefDrift, rewriteText } from '../scripts/check-instconst ROOT = join(import.meta.dir, '..');describe('install ref lint', () => {- test('the constant is latest-stable until a stable-channel release is promoted', () => {- expect(INSTALL_REF).toBe('latest-stable');- expect(INSTALL_PIN).toBe('github:garrytan/gbrain#latest-stable');- expect(INSTALL_RAW_BASE).toBe('https://raw.githubusercontent.com/garrytan/gbrain/latest-stable');+ test('the constant is stable, the channel a new install follows by default', () => {+ expect(INSTALL_REF).toBe('stable');+ expect(INSTALL_PIN).toBe('github:garrytan/gbrain#stable');+ expect(INSTALL_RAW_BASE).toBe('https://raw.githubusercontent.com/garrytan/gbrain/stable');});test('the repository has no install surface off the constant', () => {@@ -29,13 +29,13 @@ describe('install ref lint', () => {'read https://raw.githubusercontent.com/garrytan/gbrain/master/INSTALL_FOR_AGENTS.md','bun install -g github:garrytan/gbrain#latest-stable',].join('\n');- expect(driftIn('docs/x.md', doc).map(d => [d.line, d.found])).toEqual([+ expect(driftIn('docs/x.md', doc, 'latest-stable').map(d => [d.line, d.found])).toEqual([[1, 'github:garrytan/gbrain#master'],[2, 'github:garrytan/gbrain#stable'],[4, 'raw.githubusercontent.com/garrytan/gbrain/master/BOOTSTRAP_FOR_AGENTS.md'],[5, 'raw.githubusercontent.com/garrytan/gbrain/main/scripts/setup-in-agent.sh'],]);- expect(driftIn('docs/x.md', doc, 'stable').map(d => d.line).sort()).toEqual([1, 4, 5, 7]);+ expect(driftIn('docs/x.md', doc).map(d => d.line).sort()).toEqual([1, 4, 5, 7]);expect(driftIn('CHANGELOG.md', doc)).toEqual([]);});