Skip to content

Commit c15530a

Browse files
committed
Update tests responses
1 parent c33b64f commit c15530a

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

x-pack/plugins/watcher/__jest__/client_integration/watch_create_threshold.test.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ jest.mock('../../public/application/lib/api', () => {
5151
return {
5252
...original,
5353
loadIndexPatterns: async () => {
54-
const INDEX_PATTERNS = [
55-
{ attributes: { title: 'index1' } },
56-
{ attributes: { title: 'index2' } },
57-
{ attributes: { title: 'index3' } },
58-
];
59-
return await INDEX_PATTERNS;
54+
return ['index1', 'index2', 'index3'];
6055
},
6156
getHttpClient: () => mockHttpClient,
6257
};

x-pack/plugins/watcher/__jest__/client_integration/watch_edit.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ jest.mock('../../public/application/lib/api', () => {
2424
return {
2525
...original,
2626
loadIndexPatterns: async () => {
27-
const INDEX_PATTERNS = [
28-
{ attributes: { title: 'index1' } },
29-
{ attributes: { title: 'index2' } },
30-
{ attributes: { title: 'index3' } },
31-
];
32-
return await INDEX_PATTERNS;
27+
return ['index1', 'index2', 'index3'];
3328
},
3429
getHttpClient: () => mockHttpClient,
3530
};

0 commit comments

Comments
 (0)