mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
Add Codex restart hint after provider switch
This commit is contained in:
@@ -192,6 +192,10 @@ describe("useProviderActions", () => {
|
||||
expect(switchProviderMutateAsync).toHaveBeenCalledWith(provider.id);
|
||||
expect(settingsApiGetMock).not.toHaveBeenCalled();
|
||||
expect(settingsApiApplyMock).not.toHaveBeenCalled();
|
||||
expect(toastSuccessMock).toHaveBeenCalledWith(
|
||||
"切换成功,请重启客户端以生效",
|
||||
{ closeButton: true },
|
||||
);
|
||||
});
|
||||
|
||||
it("warns but still switches providers that require proxy when proxy is not running", async () => {
|
||||
|
||||
Reference in New Issue
Block a user