@gitlab/ui 54.2.1 → 54.2.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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [54.2.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v54.2.1...v54.2.2) (2023-01-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* failing test ([12597ee](https://gitlab.com/gitlab-org/gitlab-ui/commit/12597ee074321dd112fde27be7dbfbe9536184cf))
|
|
7
|
+
|
|
1
8
|
## [54.2.1](https://gitlab.com/gitlab-org/gitlab-ui/compare/v54.2.0...v54.2.1) (2023-01-30)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitlab/ui",
|
|
3
|
-
"version": "54.2.
|
|
3
|
+
"version": "54.2.2",
|
|
4
4
|
"description": "GitLab UI Components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -123,9 +123,9 @@
|
|
|
123
123
|
"glob": "^7.2.0",
|
|
124
124
|
"identity-obj-proxy": "^3.0.0",
|
|
125
125
|
"inquirer-select-directory": "^1.2.0",
|
|
126
|
-
"jest": "^29.
|
|
127
|
-
"jest-circus": "29.
|
|
128
|
-
"jest-environment-jsdom": "29.
|
|
126
|
+
"jest": "^29.4.0",
|
|
127
|
+
"jest-circus": "29.4.0",
|
|
128
|
+
"jest-environment-jsdom": "29.4.0",
|
|
129
129
|
"markdownlint-cli": "^0.29.0",
|
|
130
130
|
"mockdate": "^2.0.5",
|
|
131
131
|
"npm-run-all": "^4.1.5",
|
|
@@ -7,6 +7,8 @@ import GlDisclosureDropdownItem from './disclosure_dropdown_item.vue';
|
|
|
7
7
|
describe('GlDisclosureDropdownItem', () => {
|
|
8
8
|
let wrapper;
|
|
9
9
|
|
|
10
|
+
const clone = (i) => JSON.parse(JSON.stringify(i));
|
|
11
|
+
|
|
10
12
|
const buildWrapper = (propsData, slots = {}) => {
|
|
11
13
|
wrapper = mount(GlDisclosureDropdownItem, {
|
|
12
14
|
propsData,
|
|
@@ -18,7 +20,7 @@ describe('GlDisclosureDropdownItem', () => {
|
|
|
18
20
|
describe('when default slot content provided', () => {
|
|
19
21
|
const content = 'This is an item';
|
|
20
22
|
const slots = { default: content };
|
|
21
|
-
const item = mockItems[1];
|
|
23
|
+
const item = clone(mockItems[1]);
|
|
22
24
|
|
|
23
25
|
beforeEach(() => {
|
|
24
26
|
buildWrapper({ item }, slots);
|
|
@@ -41,7 +43,7 @@ describe('GlDisclosureDropdownItem', () => {
|
|
|
41
43
|
|
|
42
44
|
describe('when item has a `href`', () => {
|
|
43
45
|
beforeEach(() => {
|
|
44
|
-
buildWrapper({ item: mockItems[0] });
|
|
46
|
+
buildWrapper({ item: clone(mockItems[0]) });
|
|
45
47
|
});
|
|
46
48
|
|
|
47
49
|
const findLink = () => wrapper.find('a.gl-new-dropdown-item-content');
|