Rename ModelVersionTestKit utility (#178077)

## Summary

`tearsDown` -> `tearDown`
This commit is contained in:
Jean-Louis Leysens 2024-03-12 12:21:53 +01:00 committed by GitHub
parent 1457fcd4c4
commit e7c2c187e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View file

@ -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();
}
});

View file

@ -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();
}
});

View file

@ -40,7 +40,7 @@ import type { ModelVersionTestBed } from './types';
*
* afterEach(async () => {
* if(testkit) {
* await testkit.tearsDown();
* await testkit.tearDown();
* }
* });
*

View file

@ -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,
};
};

View file

@ -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>;
}
/**