Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Feb 7, 2023
1 parent 131fab8 commit 888636b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('extractMigrationInfo', () => {
'1': {
modelChange: {
type: 'expansion',
migration: {
transformation: {
up: jest.fn(),
down: jest.fn(),
},
Expand Down Expand Up @@ -217,7 +217,7 @@ describe('extractMigrationInfo', () => {
'1': {
modelChange: {
type: 'expansion',
migration: {
transformation: {
up: jest.fn(),
down: jest.fn(),
},
Expand Down Expand Up @@ -275,7 +275,7 @@ describe('extractMigrationInfo', () => {
'1': {
modelChange: {
type: 'expansion',
migration: {
transformation: {
up: jest.fn(),
down: jest.fn(),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const extractMigrationInfo = (soType: SavedObjectsType): SavedObjectTypeM
return {
version,
changeType: entry.modelChange.type,
hasMigration: !!entry.modelChange.migration,
hasMigration: !!entry.modelChange.transformation,
newMappings: Object.keys(getFlattenedObject(entry.modelChange.addedMappings ?? {})),
};
});
Expand Down

0 comments on commit 888636b

Please sign in to comment.