Skip to content

Commit

Permalink
Update src/migrateContentServer.test.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Amelot <[email protected]>
  • Loading branch information
NZepeda and Nouzbe authored Jul 31, 2024
1 parent fb12b3e commit cd32f76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/migrateContentServer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ describe("migrateContentServer", () => {
contentServer?.children?.ui?.children?.widgets?.children?.content
?.children?.["158"].entry.content;

// The widget with id "158" has an invalid widget key and its migration will therefore fail.
// Since `behaviorOnError` is set to "keep-original", the output content still contains the state of this saved widget exactly as it was before the migration.
expect(savedWidgetContentBeforeMigration).toBe(
savedWidgetContentAfterMigration,
);
Expand Down

0 comments on commit cd32f76

Please sign in to comment.