Commit 2b9f892
committed
test: restore coverage lost to strict-null-check test removals
Several not-found/no-op branches (getTransactionForCreator, SignersService.getSignatureById, UserKeysService.removeKey) lost their tests when strict null checks made the old null-argument mocks stop compiling; re-added equivalent tests using valid inputs (empty result, falsy id, null resolve) instead of the now-illegal null args.
Signed-off-by: John Bair <john.bair@swirldslabs.com>1 parent 161c371 commit 2b9f892
3 files changed
Lines changed: 20 additions & 0 deletions
File tree
- back-end/apps/api/src
- transactions
- signers
- user-keys
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
141 | 147 | | |
142 | 148 | | |
143 | 149 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3181 | 3181 | | |
3182 | 3182 | | |
3183 | 3183 | | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
3184 | 3192 | | |
3185 | 3193 | | |
3186 | 3194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
258 | 264 | | |
259 | 265 | | |
260 | 266 | | |
| |||
0 commit comments