Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(): fix snapshots by removing version #9164

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [next]

- test(): fix snapshots by removing version [#9164](https://github.com/fabricjs/fabric.js/pull/9164)

## [6.0.0-beta11]

- patch(): Avoid unwanted mutation to passed objects array to Group constructor [#9151](https://github.com/fabricjs/fabric.js/pull/9151)
Expand Down
6 changes: 0 additions & 6 deletions src/shapes/IText/__snapshots__/ITextBehavior.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ exports[`text imperative changes insertChars 2`] = `
"text": "tabest",
"top": 0,
"type": "IText",
"version": "6.0.0-beta10",
"width": 58,
}
`;
Expand Down Expand Up @@ -258,7 +257,6 @@ exports[`text imperative changes insertChars and removes chars 2`] = `
"text": "tabst",
"top": 0,
"type": "IText",
"version": "6.0.0-beta10",
"width": 47,
}
`;
Expand Down Expand Up @@ -342,7 +340,6 @@ exports[`text imperative changes insertChars and removes chars 4`] = `
"text": "tab",
"top": 0,
"type": "IText",
"version": "6.0.0-beta10",
"width": 31,
}
`;
Expand Down Expand Up @@ -550,7 +547,6 @@ exports[`text imperative changes insertChars can accept some style for the new t
aest",
"top": 0,
"type": "IText",
"version": "6.0.0-beta10",
"width": 39,
}
`;
Expand Down Expand Up @@ -725,7 +721,6 @@ exports[`text imperative changes insertChars handles new lines correctly 2`] = `
est",
"top": 0,
"type": "IText",
"version": "6.0.0-beta10",
"width": 31,
}
`;
Expand Down Expand Up @@ -804,7 +799,6 @@ exports[`text imperative changes removeChars 2`] = `
"text": "tt",
"top": 0,
"type": "IText",
"version": "6.0.0-beta10",
"width": 14,
}
`;
1 change: 0 additions & 1 deletion src/shapes/Text/__snapshots__/Text.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ exports[`Text toObject 1`] = `
"top": 0,
"type": "Text",
"underline": false,
"version": "6.0.0-beta10",
"visible": true,
"width": 60,
}
Expand Down
3 changes: 0 additions & 3 deletions src/shapes/__snapshots__/Textbox.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ fox",
"top": 0,
"type": "Textbox",
"underline": false,
"version": "6.0.0-beta10",
"visible": true,
"width": 102,
}
Expand All @@ -67,7 +66,6 @@ brown
fox",
"top": 0,
"type": "Textbox",
"version": "6.0.0-beta10",
"width": 102,
}
`;
Expand Down Expand Up @@ -157,7 +155,6 @@ fox",
"top": 0,
"type": "Textbox",
"underline": false,
"version": "6.0.0-beta10",
"visible": true,
"width": 120,
}
Expand Down
2 changes: 1 addition & 1 deletion toMatchRoundedSnapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function roundDeep(received: any, key: string | number) {

expect.extend({
toMatchRoundedSnapshot(
received: Record<string, unknown>,
{ version, ...received }: Record<string, unknown>,
keys?: string[],
...propertiesOrHint
) {
Expand Down
Loading