@jobber/components-native 0.89.1 → 0.89.2
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/dist/package.json +2 -2
- package/dist/src/ContentOverlay/UNSAFE_WrappedModalize.js +1 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/BottomSheet/BottomSheet.test.tsx +2 -2
- package/src/ButtonGroup/ButtonGroup.test.tsx +5 -3
- package/src/ContentOverlay/UNSAFE_WrappedModalize.tsx +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.89.
|
|
3
|
+
"version": "0.89.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"react-native-safe-area-context": "^5.4.0",
|
|
95
95
|
"react-native-svg": ">=12.0.0"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "33e1f533d1cf64dc6746f5db8f00763994fe5895"
|
|
98
98
|
}
|
|
@@ -110,7 +110,7 @@ it("calls onClose when BottomSheet is closed", async () => {
|
|
|
110
110
|
});
|
|
111
111
|
|
|
112
112
|
await waitFor(() => {
|
|
113
|
-
expect(mockOnClose).
|
|
113
|
+
expect(mockOnClose).toHaveBeenCalledTimes(1);
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
|
|
@@ -122,7 +122,7 @@ it("calls onOpen when BottomSheet is opened", async () => {
|
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
await waitFor(() => {
|
|
125
|
-
expect(mockOnOpen).
|
|
125
|
+
expect(mockOnOpen).toHaveBeenCalledTimes(1);
|
|
126
126
|
});
|
|
127
127
|
});
|
|
128
128
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { fireEvent, render } from "@testing-library/react-native";
|
|
2
|
+
import { fireEvent, render, waitFor } from "@testing-library/react-native";
|
|
3
3
|
import { Host } from "react-native-portalize";
|
|
4
4
|
import { Alert } from "react-native";
|
|
5
5
|
import type { ButtonGroupProps } from "./ButtonGroup";
|
|
@@ -249,7 +249,7 @@ it("renders custom button for primary action if passed in", () => {
|
|
|
249
249
|
expect(queryByText("Create")).toBeNull();
|
|
250
250
|
});
|
|
251
251
|
|
|
252
|
-
it("calls onOpenBottomSheet when the secondary actions are opened", () => {
|
|
252
|
+
it("calls onOpenBottomSheet when the secondary actions are opened", async () => {
|
|
253
253
|
const createAction = jest.fn();
|
|
254
254
|
const editAction = jest.fn();
|
|
255
255
|
const deleteAction = jest.fn();
|
|
@@ -275,7 +275,9 @@ it("calls onOpenBottomSheet when the secondary actions are opened", () => {
|
|
|
275
275
|
|
|
276
276
|
fireEvent.press(getByLabelText("More"));
|
|
277
277
|
|
|
278
|
-
|
|
278
|
+
await waitFor(() => {
|
|
279
|
+
expect(mockOnOpen).toHaveBeenCalledTimes(1);
|
|
280
|
+
});
|
|
279
281
|
});
|
|
280
282
|
|
|
281
283
|
describe("ButtonGroup Offline/Online", () => {
|
|
@@ -23,11 +23,9 @@ export const UNSAFE_WrappedModalize = forwardRef<IHandles | undefined, Props>(
|
|
|
23
23
|
requestAnimationFrame(() => {
|
|
24
24
|
innerRef.current?.open(dest);
|
|
25
25
|
});
|
|
26
|
-
props.onOpen?.();
|
|
27
26
|
},
|
|
28
27
|
close(dest) {
|
|
29
28
|
innerRef.current?.close(dest);
|
|
30
|
-
props.onClose?.();
|
|
31
29
|
},
|
|
32
30
|
}),
|
|
33
31
|
[],
|