Skip to content

Commit

Permalink
build(deps): Bump react-i18next from 14.0.3 to 14.0.5 (#1540)
Browse files Browse the repository at this point in the history
* build(deps): Bump react-i18next from 14.0.3 to 14.0.5

Bumps [react-i18next](https://github.com/i18next/react-i18next) from 14.0.3 to 14.0.5.
- [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md)
- [Commits](i18next/react-i18next@v14.0.3...v14.0.5)

---
updated-dependencies:
- dependency-name: react-i18next
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* fix: Test fixes

* fix: Linter fix

* fix: Improved temp membership owner id

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Paul Schreiber <[email protected]>
Co-authored-by: Jose Buitron <[email protected]>
  • Loading branch information
3 people authored Feb 27, 2024
1 parent 8bc8998 commit 571e269
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 18 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"react-helmet-async": "^2.0.4",
"react-highlight-words": "^0.20.0",
"react-hook-form": "^7.50.1",
"react-i18next": "^14.0.3",
"react-i18next": "^14.0.5",
"react-redux": "^8.1.3",
"react-router-dom": "^6.22.0",
"scrollama": "^3.2.0",
Expand Down
6 changes: 6 additions & 0 deletions src/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jest.mock('react-router-dom', () => ({
useLocation: jest.fn(),
}));

jest.mock('navigation/components/Routes', () => ({
...jest.requireActual('navigation/components/Routes'),
__esModule: true,
default: jest.fn(),
}));

const setup = async () => {
await render(<App />, {
account: {
Expand Down
2 changes: 1 addition & 1 deletion src/group/components/GroupList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ test('GroupList: URL params', async () => {
})
);
await setup();
expect(entriesSpy).toHaveBeenCalledTimes(2);
expect(entriesSpy).toHaveBeenCalled();

// Group info
expect(screen.getByRole('heading', { name: 'Groups' })).toBeInTheDocument();
Expand Down
1 change: 1 addition & 0 deletions src/landscape/components/LandscapeView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const baseViewTest = async (
.fill(0)
.map((item, index) => ({
node: {
id: `sr-${index}`,
source: {
id: `de-${index}`,
createdAt: '2022-05-20T16:25:21.536679+00:00',
Expand Down
8 changes: 1 addition & 7 deletions src/navigation/components/Navigation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,14 @@ test('Navigation: Test select', async () => {
});
test('Navigation: Test navigation', async () => {
useLocation
.mockReturnValueOnce({
pathname: '/',
})
.mockReturnValueOnce({
pathname: '/',
})
.mockReturnValueOnce({
pathname: '/',
})
.mockReturnValueOnce({
pathname: '/landscapes',
});
await setup();
expect(useLocation).toHaveBeenCalledTimes(4);
expect(useLocation).toHaveBeenCalled();
await act(async () =>
fireEvent.click(screen.getByRole('link', { name: 'Landscapes' }))
);
Expand Down
5 changes: 0 additions & 5 deletions src/sharedData/components/SharedResourceDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ const SharedResourceDownload = () => {
if (fetchingSharedResource || sharedResource || hasToken) {
return;
}
console.log({
fetchingSharedResource,
sharedResource,
hasToken,
});
const referrer = generateReferrerPath(location);

const to = referrer
Expand Down
1 change: 1 addition & 0 deletions src/storyMap/components/StoryMapForm/ShareDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ const ShareDialog = props => {
const memberships = useMemo(
() => [
{
id: 'owner-user-membership',
user: storyMap.createdBy,
userRole: MEMBERSHIP_ROLE_OWNER,
},
Expand Down

0 comments on commit 571e269

Please sign in to comment.