@navikt/ds-react 1.3.33 → 1.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "1.3.33",
3
+ "version": "1.3.34",
4
4
  "description": "NAV designsystem react components",
5
5
  "author": "NAV Designsystem team",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@floating-ui/react-dom-interactions": "0.9.2",
39
- "@navikt/ds-icons": "^1.3.33",
39
+ "@navikt/ds-icons": "^1.3.34",
40
40
  "@radix-ui/react-tabs": "1.0.0",
41
41
  "@radix-ui/react-toggle-group": "1.0.0",
42
42
  "clsx": "^1.2.1",
@@ -75,5 +75,5 @@
75
75
  "optional": true
76
76
  }
77
77
  },
78
- "gitHead": "e48f29153bbee76211c96e81563e23b71e5cb62a"
78
+ "gitHead": "c43611c06ca067ecb8ed24513a800b9451305fec"
79
79
  }
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react/jsx-pascal-case */
2
- import { render } from "@testing-library/react";
2
+ import { act, render } from "@testing-library/react";
3
3
  import userEvent from "@testing-library/user-event";
4
4
  import React from "react";
5
5
  import { UNSAFE_DatePicker, UNSAFE_useDatepicker } from "..";
@@ -20,6 +20,9 @@ const App = () => {
20
20
  describe("Render datepicker", () => {
21
21
  it("Should not crash when e.target is window", async () => {
22
22
  const utils = render(<App />);
23
- await userEvent.click(utils.getByText("Velg dato"));
23
+
24
+ await act(async () => {
25
+ await userEvent.click(utils.getByText("Velg dato"));
26
+ });
24
27
  });
25
28
  });