Skip to content

Commit 5437fbd

Browse files
committed
Moved error expectations
1 parent 7422f90 commit 5437fbd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_logic.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,8 @@ describe('CredentialsLogic', () => {
11271127
try {
11281128
await promise;
11291129
} catch {
1130-
// Ignore this
1130+
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
11311131
}
1132-
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
11331132
});
11341133
});
11351134

@@ -1159,9 +1158,8 @@ describe('CredentialsLogic', () => {
11591158
try {
11601159
await promise;
11611160
} catch {
1162-
// Ignore this
1161+
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
11631162
}
1164-
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
11651163
});
11661164
});
11671165

@@ -1191,9 +1189,8 @@ describe('CredentialsLogic', () => {
11911189
try {
11921190
await promise;
11931191
} catch {
1194-
// Ignore this
1192+
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
11951193
}
1196-
expect(flashAPIErrors).toHaveBeenCalledWith('An error occured');
11971194
});
11981195
});
11991196
});

0 commit comments

Comments
 (0)