Skip to content

Commit

Permalink
Merge pull request #172 from w3bdesign/development
Browse files Browse the repository at this point in the history
Update packages
  • Loading branch information
w3bdesign authored Jul 10, 2024
2 parents 66c5150 + 6ed609f commit 2523d07
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 25 deletions.
18 changes: 2 additions & 16 deletions __tests__/Animations/Grow.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("Grow", () => {
render(
<Grow duration={0.3} delay={0.2} easing={[0.42, 0, 0.58, 1]}>
Hello World
</Grow>,
</Grow>
);
});

Expand All @@ -20,24 +20,10 @@ describe("Grow", () => {

test("Legger til riktige animasjoner", () => {
const element = screen.getByTestId("grow");
expect(element).toHaveStyle("transform: scale(0) translateZ(0);");
expect(element).toHaveStyle("transform: scale(0);");
});

test("Viser children", () => {
expect(screen.getByText("Hello World")).toBeInTheDocument();
});

test("Returnerer children i motion.div element", () => {
const { container } = render(<Grow>Hello World</Grow>);
expect(container).toMatchInlineSnapshot(`
<div>
<div
data-testid="grow"
style="transform: scale(0) translateZ(0);"
>
Hello World
</div>
</div>
`);
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@sanity/image-url": "^1.0.2",
"autoprefixer": "^10.4.19",
"clsx": "^2.1.1",
"framer-motion": "^11.2.14",
"framer-motion": "^11.3.0",
"jest": "^29.7.0",
"next": "14.2.5",
"next-sanity": "^9.4.2",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2523d07

Please sign in to comment.