Repository navigation
Commit ed11ac1
committed
test(routing): cover the registry branch of the capability lookups
The three registry lookups this PR changed are only reached when the
provider is absent from the config, and every case in the file supplied
one — so `registryEntry?.model*` went untested.
Add a case that resolves `grok-4.6:latest` off the `xai` registry entry
with no provider configured, asserting the window, the image modality and
the reasoning efforts. It asserts the fixture's shape rather than its
values, so registry churn does not turn into a false failure while real
drift still does.
Against origin/dev the new case fails with `Expected: 500000, Received:
undefined`, which is the branch it is meant to hold.
Thanks @coderabbitai for the catch.1 parent 1c82ec8 commit ed11ac1
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
80 | 103 | | |
81 | 104 | | |
82 | 105 | | |
| |||
0 commit comments