Skip to content

Commit

Permalink
chore(deps): bump @dhis2/ui from 9.10.1 to 9.12.0 (#3385)
Browse files Browse the repository at this point in the history
* chore(deps): bump @dhis2/ui from 9.10.1 to 9.12.0

Bumps [@dhis2/ui](https://github.com/dhis2/ui/tree/HEAD/collections/ui) from 9.10.1 to 9.12.0.
- [Release notes](https://github.com/dhis2/ui/releases)
- [Changelog](https://github.com/dhis2/ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dhis2/ui/commits/v9.12.0/collections/ui)

---
updated-dependencies:
- dependency-name: "@dhis2/ui"
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: update snapshot so it doesnt break with ui upgrades

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jen Jones Arnesen <[email protected]>
  • Loading branch information
dependabot[bot] and jenniferarnesen authored Nov 1, 2024
1 parent f415d29 commit 7f589b4
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 435 deletions.
14 changes: 14 additions & 0 deletions src/components/layers/toolbar/__tests__/LayerToolbar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ import { shallow } from 'enzyme'
import React from 'react'
import LayerToolbar from '../LayerToolbar.js'

/* eslint-disable react/prop-types */
jest.mock('@dhis2/ui', () => {
const originalModule = jest.requireActual('@dhis2/ui')

return {
__esModule: true,
...originalModule,
Tooltip: function Tooltip({ children }) {
return <div>{children}</div>
},
}
})
/* eslint-enable react/prop-types */

describe('LayerToolbar', () => {
const shallowRenderLayerToolbar = (props) =>
shallow(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@ exports[`LayerToolbar Should match toolbar snapshot WITH Edit button 1`] = `
className="sliderContainer"
>
<Tooltip
closeDelay={200}
content="Set layer opacity"
dataTest="dhis2-uicore-tooltip"
maxWidth={300}
openDelay={200}
placement="top"
>
<OpacitySlider
disabled={false}
Expand Down Expand Up @@ -66,12 +61,7 @@ exports[`LayerToolbar Should match toolbar snapshot without Edit button 1`] = `
className="sliderContainer"
>
<Tooltip
closeDelay={200}
content="Set layer opacity"
dataTest="dhis2-uicore-tooltip"
maxWidth={300}
openDelay={200}
placement="top"
>
<OpacitySlider
disabled={false}
Expand Down
Loading

0 comments on commit 7f589b4

Please sign in to comment.