We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 565951a commit 06e1c28Copy full SHA for 06e1c28
packages/pluggableWidgets/badge-web/src/components/__tests__/Badge.spec.tsx
@@ -5,10 +5,14 @@ import { createElement } from "react";
5
import { Badge, BadgeProps } from "../Badge";
6
7
describe("Badge", () => {
8
- const defaultBadgeProps: BadgeProps = {
9
- type: "badge",
10
- value: "text"
11
- };
+ let defaultBadgeProps: BadgeProps;
+
+ beforeEach(() => {
+ defaultBadgeProps = {
12
+ type: "badge",
13
+ value: "text"
14
+ };
15
+ });
16
17
function renderBadge(props: Partial<BadgeProps> = {}): RenderResult {
18
return render(<Badge {...defaultBadgeProps} {...props} />);
0 commit comments