diff --git a/test-ralph-workflow/scripts/ralph/prd.json b/test-ralph-workflow/scripts/ralph/prd.json index 880089f..026cbf3 100644 --- a/test-ralph-workflow/scripts/ralph/prd.json +++ b/test-ralph-workflow/scripts/ralph/prd.json @@ -27,8 +27,8 @@ "Exportată ca module.exports = { hello }", "Funcția trimite toLowerCase pe name" ], - "passes": false, - "notes": "" + "passes": true, + "notes": "src/hello.js creat cu hello(name) care aplică toLowerCase pe name. Exportat ca module.exports = { hello }." }, { "id": "US-003", diff --git a/test-ralph-workflow/scripts/ralph/progress.txt b/test-ralph-workflow/scripts/ralph/progress.txt index 94d4cdf..ee232b8 100644 --- a/test-ralph-workflow/scripts/ralph/progress.txt +++ b/test-ralph-workflow/scripts/ralph/progress.txt @@ -14,3 +14,15 @@ Project: hello-ralph-test ### Next steps: - US-002: Implementare funcție hello(name) în src/hello.js --- + +## Iterație: 2026-02-08T14:10:00Z +### Story implementat: US-002 - Funcție hello simpla +### Status: Complete + +### Learnings: +- Implementare minimală: o singură funcție cu toLowerCase pe name. +- Verificat manual că hello("World") === "Hello, world!" returnează true. + +### Next steps: +- US-003: Adăugare test jest pentru funcția hello +--- diff --git a/test-ralph-workflow/src/hello.js b/test-ralph-workflow/src/hello.js new file mode 100644 index 0000000..58a97a4 --- /dev/null +++ b/test-ralph-workflow/src/hello.js @@ -0,0 +1,5 @@ +function hello(name) { + return `Hello, ${name.toLowerCase()}!`; +} + +module.exports = { hello };