Skip to content

Commit

Permalink
change to .send-v2__warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino committed Jan 23, 2019
1 parent b2e2dee commit b66bbed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ describe('SendRowWarningMessage Component', function () {

describe('render', () => {
it('should render null if the passed warnings do not contain a warning of warningType', () => {
assert.equal(wrapper.find('.send-v2__error').length, 0)
assert.equal(wrapper.find('.send-v2__warning').length, 0)
assert.equal(wrapper.html(), null)
})

it('should render a warning message if the passed warnings contain a warning of warningType', () => {
wrapper.setProps({ warnings: { warning1: 'abc', warning2: 'def', warning3: 'xyz' } })
assert.equal(wrapper.find('.send-v2__error').length, 1)
assert.equal(wrapper.find('.send-v2__error').text(), 'xyz_t')
assert.equal(wrapper.find('.send-v2__warning').length, 1)
assert.equal(wrapper.find('.send-v2__warning').text(), 'xyz_t')
})
})
})

0 comments on commit b66bbed

Please sign in to comment.