Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Medesan committed Apr 26, 2021
1 parent f9fde89 commit 86fc97f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ProgressWorkflow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const ProgressWorkflow = (props) => {
};

setIsToolbarOpen(!!hasToolbar);

// filter out paths that don't have workflow (home, login, dexterity even if the content obj stays the same etc)
if (
content['@id'].indexOf(pathname) >= 0 &&
Expand Down
6 changes: 5 additions & 1 deletion src/ProgressWorkflow.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ import configureStore from 'redux-mock-store';
import ProgressWorkflow from './ProgressWorkflow';

const mockStore = configureStore();
const props = { content: { review_state: 'pending' }, pathname: '/' };
const props = {
content: { review_state: 'pending' },
pathname: '/',
'@id': 'http://localhost:3000/api/',
};
const propsEmpty = {};

describe('ProgressWorkflow', () => {
Expand Down

0 comments on commit 86fc97f

Please sign in to comment.