@clayui/tabs 3.100.0 → 3.101.0
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 +3 -3
- package/src/__tests__/index.tsx +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clayui/tabs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.101.0",
|
|
4
4
|
"description": "ClayTabs component",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"repository": "https://github.com/liferay/clay",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@clayui/shared": "^3.
|
|
29
|
+
"@clayui/shared": "^3.101.0",
|
|
30
30
|
"classnames": "^2.2.6"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"browserslist": [
|
|
38
38
|
"extends browserslist-config-clay"
|
|
39
39
|
],
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "55f8b720047b2aa4764d5de1302f715db62ed902"
|
|
41
41
|
}
|
package/src/__tests__/index.tsx
CHANGED
|
@@ -96,8 +96,8 @@ describe('ClayTabs', () => {
|
|
|
96
96
|
|
|
97
97
|
const tabItems = getAllByTestId('tabItem');
|
|
98
98
|
|
|
99
|
-
expect(tabItems[0]
|
|
100
|
-
expect(tabItems[1]
|
|
99
|
+
expect(tabItems[0]!.nodeName).toBe('A');
|
|
100
|
+
expect(tabItems[1]!.nodeName).toBe('A');
|
|
101
101
|
});
|
|
102
102
|
|
|
103
103
|
it('renders disabled nav items', () => {
|
|
@@ -118,8 +118,8 @@ describe('ClayTabs', () => {
|
|
|
118
118
|
|
|
119
119
|
const tabItems = getAllByTestId('tabItem');
|
|
120
120
|
|
|
121
|
-
expect(tabItems[2]
|
|
122
|
-
expect(tabItems[2]
|
|
121
|
+
expect(tabItems[2]!.classList).toContain('disabled');
|
|
122
|
+
expect(tabItems[2]!.attributes.getNamedItem('disabled')).toBeTruthy();
|
|
123
123
|
});
|
|
124
124
|
|
|
125
125
|
it('emits a number when clicking an item', () => {
|
|
@@ -142,10 +142,10 @@ describe('ClayTabs', () => {
|
|
|
142
142
|
|
|
143
143
|
const tabItems = getAllByTestId('tabItem');
|
|
144
144
|
|
|
145
|
-
fireEvent.click(tabItems[0]);
|
|
145
|
+
fireEvent.click(tabItems[0]!);
|
|
146
146
|
expect(onClick).toBeCalled();
|
|
147
147
|
|
|
148
|
-
fireEvent.click(tabItems[1]);
|
|
148
|
+
fireEvent.click(tabItems[1]!);
|
|
149
149
|
expect(onClick).toBeCalled();
|
|
150
150
|
});
|
|
151
151
|
|
|
@@ -166,10 +166,10 @@ describe('ClayTabs', () => {
|
|
|
166
166
|
const tabItems = getAllByRole('tab');
|
|
167
167
|
const tabPanels = getAllByRole('tabpanel');
|
|
168
168
|
|
|
169
|
-
expect(tabItems[0]
|
|
169
|
+
expect(tabItems[0]!.innerHTML).toBe('Two');
|
|
170
170
|
expect(tabItems.length).toBe(1);
|
|
171
171
|
|
|
172
|
-
expect(tabPanels[0]
|
|
172
|
+
expect(tabPanels[0]!.innerHTML).toBe('Content Two');
|
|
173
173
|
expect(tabPanels.length).toBe(1);
|
|
174
174
|
});
|
|
175
175
|
|