Repository navigation
Commit c1dfba9
easonLiangWorldedtech
test(api): tighten completion cancellation assertions
Two completion-path assertion gaps (rows 4506478027, 4506478090):
the deadline test only matched the TimeoutError name, so a wrong phase
string would still pass - it now asserts the full message; and no test
covered completePrompt receiving the SDK's own AbortError with no options,
where the request signal's reason is undefined - the new case locks the
optional guard on the reason read. Controls: flipping the phase makes the
message assertion fail, and dropping the optional guard turns the new
case's rejection into a TypeError.1 parent a836297 commit c1dfba9
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1937 | 1937 | | |
1938 | 1938 | | |
1939 | 1939 | | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
1940 | 1944 | | |
1941 | 1945 | | |
1942 | 1946 | | |
| |||
1960 | 1964 | | |
1961 | 1965 | | |
1962 | 1966 | | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
1963 | 1983 | | |
1964 | 1984 | | |
1965 | 1985 | | |
| |||
0 commit comments