mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-10 00:47:16 -07:00
fix(patch): cherry-pick 81ccd80 to release/v0.28.0-preview.5-pr-18406 to patch version v0.28.0-preview.5 and create version 0.28.0-preview.6 (#18651)
Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com> Co-authored-by: galz10 <galzahavi@google.com>
This commit is contained in:
@@ -149,7 +149,9 @@ describe('useFolderTrust', () => {
|
||||
});
|
||||
|
||||
await act(async () => {
|
||||
result.current.handleFolderTrustSelect(FolderTrustChoice.TRUST_FOLDER);
|
||||
await result.current.handleFolderTrustSelect(
|
||||
FolderTrustChoice.TRUST_FOLDER,
|
||||
);
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
@@ -173,7 +175,9 @@ describe('useFolderTrust', () => {
|
||||
);
|
||||
|
||||
await act(async () => {
|
||||
result.current.handleFolderTrustSelect(FolderTrustChoice.TRUST_PARENT);
|
||||
await result.current.handleFolderTrustSelect(
|
||||
FolderTrustChoice.TRUST_PARENT,
|
||||
);
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
@@ -197,7 +201,9 @@ describe('useFolderTrust', () => {
|
||||
);
|
||||
|
||||
await act(async () => {
|
||||
result.current.handleFolderTrustSelect(FolderTrustChoice.DO_NOT_TRUST);
|
||||
await result.current.handleFolderTrustSelect(
|
||||
FolderTrustChoice.DO_NOT_TRUST,
|
||||
);
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
@@ -221,7 +227,7 @@ describe('useFolderTrust', () => {
|
||||
);
|
||||
|
||||
await act(async () => {
|
||||
result.current.handleFolderTrustSelect(
|
||||
await result.current.handleFolderTrustSelect(
|
||||
'invalid_choice' as FolderTrustChoice,
|
||||
);
|
||||
});
|
||||
@@ -253,7 +259,9 @@ describe('useFolderTrust', () => {
|
||||
});
|
||||
|
||||
await act(async () => {
|
||||
result.current.handleFolderTrustSelect(FolderTrustChoice.TRUST_FOLDER);
|
||||
await result.current.handleFolderTrustSelect(
|
||||
FolderTrustChoice.TRUST_FOLDER,
|
||||
);
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
@@ -272,7 +280,9 @@ describe('useFolderTrust', () => {
|
||||
);
|
||||
|
||||
await act(async () => {
|
||||
result.current.handleFolderTrustSelect(FolderTrustChoice.TRUST_FOLDER);
|
||||
await result.current.handleFolderTrustSelect(
|
||||
FolderTrustChoice.TRUST_FOLDER,
|
||||
);
|
||||
});
|
||||
|
||||
await waitFor(() => {
|
||||
@@ -294,8 +304,10 @@ describe('useFolderTrust', () => {
|
||||
useFolderTrust(mockSettings, onTrustChange, addItem),
|
||||
);
|
||||
|
||||
act(() => {
|
||||
result.current.handleFolderTrustSelect(FolderTrustChoice.TRUST_FOLDER);
|
||||
await act(async () => {
|
||||
await result.current.handleFolderTrustSelect(
|
||||
FolderTrustChoice.TRUST_FOLDER,
|
||||
);
|
||||
});
|
||||
|
||||
await vi.runAllTimersAsync();
|
||||
|
||||
Reference in New Issue
Block a user