Skip to content

Commit

Permalink
test(): fix snapshots by removing version (#9164)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 authored Aug 22, 2023
1 parent 76b0606 commit b13879c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 deletions.
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

0 comments on commit b13879c

Please sign in to comment.