|
18 | 18 | */ |
19 | 19 |
|
20 | 20 | import { SavedObjectMigrationContext } from 'kibana/server'; |
21 | | -import { searchSavedObjectTypeMigrations } from './search_migrations'; |
| 21 | +import { searchMigrations } from './search_migrations'; |
22 | 22 |
|
23 | 23 | const savedObjectMigrationContext = (null as unknown) as SavedObjectMigrationContext; |
24 | 24 |
|
25 | 25 | describe('migration search', () => { |
26 | 26 | describe('6.7.2', () => { |
27 | | - const migrationFn = searchSavedObjectTypeMigrations['6.7.2']; |
| 27 | + const migrationFn = searchMigrations['6.7.2']; |
28 | 28 |
|
29 | 29 | it('should migrate obsolete match_all query', () => { |
30 | 30 | const migratedDoc = migrationFn( |
@@ -56,7 +56,7 @@ describe('migration search', () => { |
56 | 56 | }); |
57 | 57 |
|
58 | 58 | describe('7.0.0', () => { |
59 | | - const migrationFn = searchSavedObjectTypeMigrations['7.0.0']; |
| 59 | + const migrationFn = searchMigrations['7.0.0']; |
60 | 60 |
|
61 | 61 | test('skips errors when searchSourceJSON is null', () => { |
62 | 62 | const doc = { |
@@ -278,7 +278,7 @@ Object { |
278 | 278 | }); |
279 | 279 |
|
280 | 280 | describe('7.4.0', function () { |
281 | | - const migrationFn = searchSavedObjectTypeMigrations['7.4.0']; |
| 281 | + const migrationFn = searchMigrations['7.4.0']; |
282 | 282 |
|
283 | 283 | test('transforms one dimensional sort arrays into two dimensional arrays', () => { |
284 | 284 | const doc = { |
|
0 commit comments