mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Rename ModelVersionTestKit
utility (#178077)
## Summary `tearsDown` -> `tearDown`
This commit is contained in:
parent
1457fcd4c4
commit
e7c2c187e1
5 changed files with 6 additions and 6 deletions
|
@ -687,7 +687,7 @@ describe('myIntegrationTest', () => {
|
|||
afterEach(async () => {
|
||||
if(testkit) {
|
||||
// delete the indices between each tests to perform a migration again
|
||||
await testkit.tearsDown();
|
||||
await testkit.tearDown();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -988,7 +988,7 @@ describe('myIntegrationTest', () => {
|
|||
afterEach(async () => {
|
||||
if(testkit) {
|
||||
// delete the indices between each tests to perform a migration again
|
||||
await testkit.tearsDown();
|
||||
await testkit.tearDown();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ import type { ModelVersionTestBed } from './types';
|
|||
*
|
||||
* afterEach(async () => {
|
||||
* if(testkit) {
|
||||
* await testkit.tearsDown();
|
||||
* await testkit.tearDown();
|
||||
* }
|
||||
* });
|
||||
*
|
||||
|
|
|
@ -121,7 +121,7 @@ export const prepareModelVersionTestKit = async ({
|
|||
|
||||
await runMigrations(secondMigrator);
|
||||
|
||||
const tearsDown = async () => {
|
||||
const tearDown = async () => {
|
||||
await esClient.indices.delete({ index: `${kibanaIndex}_*`, allow_no_indices: true });
|
||||
};
|
||||
|
||||
|
@ -129,7 +129,7 @@ export const prepareModelVersionTestKit = async ({
|
|||
esClient,
|
||||
repositoryBefore,
|
||||
repositoryAfter,
|
||||
tearsDown,
|
||||
tearDown,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ export interface ModelVersionTestKit {
|
|||
* Cleanup function that will delete the test index.
|
||||
* Should be called before calling `testbed.prepareTestKit` again.
|
||||
*/
|
||||
tearsDown: () => Promise<void>;
|
||||
tearDown: () => Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue