chadtmiller.com/knotless-demo
A small sample project for trying the Knotless app: safe to comment on, report and block in.
0
0
Add a farewell
Openchadtmiller.com added 1 commit
Should farewell trim the name too, once the issue about spaces is fixed? Happy either way for now.
src/greet.jsline 8
| |
/** Says goodbye to someone by name. */ | |
export function farewell(name) { | |
return `Goodbye, ${name}!`; |
Same shape as greet, so the two read alike.
Approved
This adds farewell(name) next to greet(name) in src/greet.js, with a matching test in test/greet.test.js. I read both changed files. The function and its test are correct and follow the existing style. The repository has no AGENTS.md, so there were no extra conventions to check. I didn't look at the check results.
Approved
1 approval, 1 review awaited
demo.knotless.devreview requested
Adds
farewell(name)besidegreet(name), so the greeter can say goodbye too, with a test for it.src/greet.js: the new functiontest/greet.test.js: its test