Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions TDD-TESTING-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ Tests verify:

#### **Assignment 4** (Tasks and Validations)
```bash
npm run tdd assignment4
npm run tdd assignment4a
npm run tdd assignment4b # For optional advanced part
```
Tests verify:
- User registration, login, and logoff
- Task CRUD operations
- Protected task access and task ownership
- Validation schemas work correctly
- Optional advanced validation, patch update, and password security checks

#### **Assignment 5** (SQL Introduction)
```bash
Expand Down Expand Up @@ -272,7 +275,7 @@ test('globals-demo.js outputs correct globals', () => {
- Make sure it logs the exact strings the test expects
- Pay attention to spacing and capitalization!

### Example: Reading assignment4.test.js
### Example: Reading assignment4a.test.js

For controller tests (like Assignment 4), tests use `node-mocks-http`:

Expand Down
735 changes: 562 additions & 173 deletions assignments/04-tasks-validations.md

Large diffs are not rendered by default.

Loading