Skip to content

Commit

Permalink
make test a bit more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlukasse committed Oct 13, 2022
1 parent bee095b commit 83e4050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/UserProfile/UserProfile.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ describe('the UserProfile component', () => {
/>
</StaticRouter>,
);
expect($vdom.find('tbody tr')).toHaveLength(testProps.userProfile.jtis.length);
// we expect one delete button per jti:
expect($vdom.find('td button')).toHaveLength(testProps.userProfile.jtis.length);
});

it('triggers create-key events', (done) => {
Expand Down

0 comments on commit 83e4050

Please sign in to comment.