fix: correct hardcoded generated-image counts after Task 3 regression

Task 3 raised assets/images/generated/ from 76 to 81 files and updated
build-responsive-images.sh's count guard, but missed four other
hardcoded 76/62/14 references in the smoke suite and README.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-15 14:33:32 -05:00
1 parent 9860e69728
commit 847f399886
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -140,7 +140,7 @@ test( 'media and review documentation matches the current inventory and cleanup
const readme = read( 'README.md' );
const plan = read( 'docs/superpowers/plans/2026-08-13-music-podcast-grunge-stages.md' );
assert.match( readme, /76 generated files: 62 binary derivatives and 14 manifests/ );
assert.match( readme, /81 generated files: 66 binary derivatives and 15 manifests/ );
assert.match( readme, /eleven portrait families at 384 px and 768 px/ );
assert.match( readme, /three\s+landscape background families \(Podcast, About, and Projects\) at 384 px, 768 px,\s+and 1536 px/ );
for ( const budget of [ '160 KiB', '260 KiB', '400 KiB', '340 KiB', '620 KiB', '3 MiB' ] ) {
@@ -469,7 +469,7 @@ test( 'all approved responsive media rebuild byte-identically within payload bou
assert.deepEqual( readdirSync( external ), [ 'sentinel' ] );
execFileSync( './scripts/build-responsive-images.sh', [ output ], { cwd: new URL( '../..', import.meta.url ) } );
const names = readdirSync( output ).sort();
assert.equal( names.length, 76 );
assert.equal( names.length, 81 );
for ( const name of [
'alter-ego-gaming-half-body-384.avif',
'alter-ego-gaming-half-body-384.webp',
@@ -684,7 +684,7 @@ printf 'partial-build-%s\n' "$count" > "$output"
}
} );
test( 'responsive promotion failure restores all 76 prior files', () => {
test( 'responsive promotion failure restores all 81 prior files', () => {
const output = mkdtempSync( join( tmpdir(), 'chrnx-promotion-output-' ) );
const fakeBin = mkdtempSync( join( tmpdir(), 'chrnx-promotion-bin-' ) );
const external = mkdtempSync( join( tmpdir(), 'chrnx-promotion-external-' ) );
@@ -697,7 +697,7 @@ test( 'responsive promotion failure restores all 76 prior files', () => {
try {
execFileSync( './scripts/build-responsive-images.sh', [ output ], { cwd: projectRoot } );
const published = new Map( readdirSync( output ).map( ( name ) => [ name, sha256( join( output, name ) ) ] ) );
assert.equal( published.size, 76 );
assert.equal( published.size, 81 );
writeFileSync( sentinel, 'external-sentinel' );
const sentinelHash = sha256( sentinel );
const realMv = execFileSync( '/bin/sh', [ '-c', 'command -v mv' ], { encoding: 'utf8' } ).trim();