Skip to content

Commit

Permalink
apps/budgeting/assets/Pagination.jest: move Pagination.jest to __test…
Browse files Browse the repository at this point in the history
…s__ folder for consitancy and update path
  • Loading branch information
philli-m committed Nov 23, 2021
1 parent 308ea97 commit f118d77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions meinberlin/apps/budgeting/assets/BudgetingProposalList.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useEffect, useState } from 'react'
import { BudgetingProposalListItem } from './BudgetingProposalListItem'
import { Pagination } from './Pagination'
import MapListSwitch from '../../contrib/assets/MapListSwitch'

export const BudgetingProposalList = (props) => {
const [data, setData] = useState([])
Expand Down Expand Up @@ -33,6 +34,7 @@ export const BudgetingProposalList = (props) => {
return (
<div className="l-wrapper">
<div className="l-center-8">
<MapListSwitch />
<ul className="u-list-reset">
{data.map((proposal, idx) =>
<BudgetingProposalListItem
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { render, fireEvent, screen } from '@testing-library/react'
import { Pagination } from './Pagination'
import { Pagination } from '../Pagination'

test('clicking on page 2 returns value of 2', () => {
const onPageChangedFn = jest.fn()
Expand Down

0 comments on commit f118d77

Please sign in to comment.