Skip to content

Commit

Permalink
Refactor unit test for no workflows message.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelliotartz committed Nov 8, 2017
1 parent ba00182 commit 81f7192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/pages/admin/project-status.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ describe('ProjectStatus', () => {
});

it('renders a no workflows found message when no workflow is in component state', () => {
const noWorkflowsMessage = wrapper.find('div[children="No workflows found"]');
assert.equal(noWorkflowsMessage.length, 1);
const noWorkflowsMessage = wrapper.find('.project-status__section').at(1).children().find('div');
assert.equal(noWorkflowsMessage.text(), 'No workflows found');
});
});

Expand Down

0 comments on commit 81f7192

Please sign in to comment.