mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
updating persistable state types (#123340)
This commit is contained in:
parent
cd06e5f5af
commit
c2bd8d127f
15 changed files with 69 additions and 31 deletions
|
@ -52,7 +52,11 @@ describe('embeddable migrations', () => {
|
|||
},
|
||||
})()?.migrations;
|
||||
|
||||
const migratedLensDoc = embeddableMigrationVersions?.[migrationVersion](lensVisualizationDoc);
|
||||
const migrations =
|
||||
typeof embeddableMigrationVersions === 'function'
|
||||
? embeddableMigrationVersions()
|
||||
: embeddableMigrationVersions || {};
|
||||
const migratedLensDoc = migrations[migrationVersion](lensVisualizationDoc);
|
||||
|
||||
expect(migratedLensDoc).toEqual({
|
||||
attributes: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue