Commit 2039bf9
committed
test: snapshot assertions, unit tests, fix login network dependency
- Replace spot-check assertions with deepStrictEqual against expected-snapshot.json
- Add unit tests for API.getStats, API.getRanks (with tiebreak edge cases), Util.post
- Populate admindata.json fixture so /login avoids real GitHub API calls
- Add Cache-Control header tests, persistence verification tests
- Test invalid JSON (400) on all POST endpoints
- Add /add, /getRepositories endpoint tests
- Expose response headers in test helper
- Add cross-endpoint data consistency tests1 parent feccf09 commit 2039bf9
7 files changed
Lines changed: 1349 additions & 70 deletions
File tree
- tests
- e2e
- fixtures
- unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
0 commit comments