diff --git a/web/ASC.Web.Components/src/components/help-button/help-button.test.js b/web/ASC.Web.Components/src/components/help-button/help-button.test.js
index cedd3d18e7..06cf3302ae 100644
--- a/web/ASC.Web.Components/src/components/help-button/help-button.test.js
+++ b/web/ASC.Web.Components/src/components/help-button/help-button.test.js
@@ -59,4 +59,14 @@ describe("", () => {
expect(wrapper.getDOMNode().style).toHaveProperty('color', 'red');
});
+
+ it("", () => {
+ const wrapper = mount().instance();
+ wrapper.componentDidUpdate(wrapper.props);
+
+ wrapper.componentDidUpdate({displayType: "auto"});
+ wrapper.componentDidUpdate({displayType: "aside"});
+
+ expect(wrapper.props).toBe(wrapper.props);
+ });
});
diff --git a/web/ASC.Web.Components/src/components/tabs-container/tabs-container.test.js b/web/ASC.Web.Components/src/components/tabs-container/tabs-container.test.js
index 06c4b0f507..8d0584c5bd 100644
--- a/web/ASC.Web.Components/src/components/tabs-container/tabs-container.test.js
+++ b/web/ASC.Web.Components/src/components/tabs-container/tabs-container.test.js
@@ -8,18 +8,9 @@ const array_items = [
title: "Title1",
content: (
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
)
},
@@ -28,15 +19,9 @@ const array_items = [
title: "Title2",
content: (
-
-
-
-
-
-
-
-
-
+
+
+
)
},
@@ -45,15 +30,9 @@ const array_items = [
title: "Title3",
content: (
)
},
@@ -62,21 +41,9 @@ const array_items = [
title: "Title4",
content: (
-
- {" "}
- {" "}
- {" "}
-
-
- {" "}
- {" "}
- {" "}
-
-
- {" "}
- {" "}
- {" "}
-
+
+
+
)
},
@@ -85,18 +52,9 @@ const array_items = [
title: "Title5",
content: (
-
- {" "}
- {" "}
-
-
- {" "}
- {" "}
-
-
- {" "}
- {" "}
-
+
+
+
)
}
@@ -140,4 +98,12 @@ describe("", () => {
);
expect(shouldUpdate).toBe(false);
});
+
+ it("TabsContainer not re-render test", () => {
+ const wrapper = mount(
+ {array_items}
+ ).instance();
+ const shouldUpdate = wrapper.shouldComponentUpdate(wrapper.props, {...wrapper.state, activeTab: 3});
+ expect(shouldUpdate).toBe(true);
+ });
});