Skip to content

Commit

Permalink
updtated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Medesan committed Apr 26, 2021
1 parent 86fc97f commit 61d5840
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/ProgressWorkflow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ const ProgressWorkflow = (props) => {
const keys = [state[0][indexOfCurrentSateKey]];
const titles = [state[3][indexOfCurrentSateKey]];
const nextState = [state[2][indexOfCurrentSateKey]];
// console.log({ indexOfCurrentSateKey });
// console.log([keys, percent, nextState, titles]);

return [keys, percent, nextState, titles];
}
return state;
Expand Down
6 changes: 4 additions & 2 deletions src/ProgressWorkflow.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import ProgressWorkflow from './ProgressWorkflow';

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

Expand Down

0 comments on commit 61d5840

Please sign in to comment.