Skip to content

Commit

Permalink
Library components and DocumentList test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-huridocs committed Feb 3, 2025
1 parent d823a44 commit 622d0a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions app/react/Library/components/DocumentsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ function mapStateToProps(state, props) {
documents: state[props.storeKey].documents,
filters: state[props.storeKey].filters,
filtersPanel: state[props.storeKey].ui.get('filtersPanel'),
//TODO: Uncomment when rerendering is fixed
// search: state[props.storeKey].search,
search: state[props.storeKey].search,
selectedDocuments: state[props.storeKey].ui.get('selectedDocuments'),
multipleSelected: state[props.storeKey].ui.get('selectedDocuments').size > 1,
rowListZoomLevel: state[props.storeKey].ui.get('zoomLevel'),
Expand Down
2 changes: 2 additions & 0 deletions app/react/Library/specs/LibraryCards.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import createStore from 'app/store';
import DocumentsList from 'app/Library/components/DocumentsList';
import LibraryLayout from 'app/Library/LibraryLayout';

jest.mock('app/appRoutes');

describe('Library', () => {
const templates = [
{
Expand Down
2 changes: 2 additions & 0 deletions app/react/Library/specs/LibraryMap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import RouteHandler from 'app/App/RouteHandler';
import { MapView } from 'app/Library/components/MapView';
import LibraryModeToggleButtons from 'app/Library/components/LibraryModeToggleButtons';

jest.mock('app/appRoutes');

describe('LibraryMap', () => {
let component;

Expand Down
2 changes: 2 additions & 0 deletions app/react/Library/specs/LibraryTable.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { LibraryTableComponent } from 'app/Library/LibraryTable';
import RouteHandler from 'app/App/RouteHandler';
import DocumentsList from 'app/Library/components/DocumentsList';

jest.mock('app/appRoutes');

describe('LibraryTable', () => {
let component;
let context;
Expand Down

0 comments on commit 622d0a6

Please sign in to comment.