Skip to content

Commit

Permalink
✅ Fix unit test of transactionDetailView
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Jul 18, 2019
1 parent 0b375b1 commit 31004df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ describe('Transaction Detail View', () => {
it('Should render transfer transaction with message', () => {
wrapper = mount(<Router><TransactionDetailView {...props} /></Router>, options);
expect(wrapper).toContainMatchingElements(2, '.accountInfo');
expect(wrapper.find('.accountInfo .sender-address').first().text()).toBe(transaction.senderId);
expect(wrapper.find('.accountInfo .receiver-address').at(1).text()).toBe(transaction.recipientId);
expect(wrapper.find('.accountInfo .sender-address').text()).toBe(transaction.senderId);
expect(wrapper.find('.accountInfo .receiver-address').text()).toBe(transaction.recipientId);
expect(wrapper).toContainExactlyOneMatchingElement('.message');
});

Expand Down

0 comments on commit 31004df

Please sign in to comment.