Personal Telegram developer console for GitHub
test: cover README editing under expanded Workspace ceiling
davoodmehraban89 committed
Oct 4, 2026 at 11:27 UTC
bdc18b92f33d182360d6b05a4bfb89c9c0525cc6
1 file changed
+3
-2
test/github-workspace-ui.test.js
+3
-2
@@ -133,11 +133,12 @@ test('nested directory resolves through short ref and preserves the full server-
133
assert.ok(github.calls.some(call => call[0] === 'listFiles' && call[2] === 'src/deep'));
134
});
135
136
-test('eligible file preview shows Edit while risky or oversized content stays readable with explicit disabled reason', async () => {
136
+test('eligible file preview including README shows Edit while risky or truly oversized content stays readable with explicit disabled reason', async () => {
137
for (const fixture of [
138
{ path: 'src/app.js', text: 'console.log(1);\n', editable: true },
139
+ { path: 'README.md', text: `# Nexa Dev Bot\n\n${'x'.repeat(8200)}`, editable: true },
140
{ path: '.env.production', text: 'NOT_A_REAL_SECRET=value\n', editable: false, reason: /sensitive/i },
140
- { path: 'large.txt', text: 'x'.repeat(3001), editable: false, reason: /3,000|3000/ },
141
+ { path: 'large.txt', text: 'x'.repeat(20001), editable: false, reason: /20,000|20000/ },
142
{ path: 'asset.txt', text: 'version https://git-lfs.github.com/spec/v1\noid sha256:abc\nsize 9\n', editable: false, reason: /LFS/i }
143
]) {
144
const github = makeGitHub({ fileText: fixture.text, filePath: fixture.path });