[READ-ONLY] Mirror of https://github.com/bombshell-dev/clack. Effortlessly build beautiful command-line apps bomb.sh/docs/clack/basics/getting-started/
cli command-line command-line-app node prompt prompts
5

Configure Feed

Select the types of activity you want to include in your feed.

[ci] format

authored by

James Garbutt and committed by
bombshell-bot
(Jun 3, 2025, 4:12 PM UTC) 53ebd43f 7bc3301c

+4 -4
+4 -4
packages/core/test/prompts/prompt.test.ts
··· 258 258 259 259 instance.value = 'invalid'; 260 260 261 - input.emit('keypress', '', {name: 'return'}); 261 + input.emit('keypress', '', { name: 'return' }); 262 262 263 263 expect(instance.state).to.equal('error'); 264 264 expect(instance.error).to.equal('must be valid'); ··· 274 274 instance.prompt(); 275 275 276 276 instance.value = 'invalid'; 277 - input.emit('keypress', '', {name: 'return'}); 277 + input.emit('keypress', '', { name: 'return' }); 278 278 279 279 expect(instance.state).to.equal('error'); 280 280 expect(instance.error).to.equal('must be valid'); ··· 290 290 instance.prompt(); 291 291 292 292 instance.value = 'Invalid Value $$$'; 293 - input.emit('keypress', '', {name: 'return'}); 293 + input.emit('keypress', '', { name: 'return' }); 294 294 295 295 expect(instance.state).to.equal('error'); 296 296 expect(instance.error).to.equal('Invalid value'); ··· 306 306 instance.prompt(); 307 307 308 308 instance.value = 'VALID'; 309 - input.emit('keypress', '', {name: 'return'}); 309 + input.emit('keypress', '', { name: 'return' }); 310 310 311 311 expect(instance.state).to.equal('submit'); 312 312 expect(instance.error).to.equal('');