Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
✅ Test custom content in Fab
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed May 9, 2017
1 parent ac5ec29 commit e662e7f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/specs/MdcFab.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ describe('Fab', function () {
vm.$('.mdc-fab__icon').should.have.match('span')
})

it('contains custom content', function () {
const vm = createVM(this, function (h) {
return (
<Fab style={{ fontSize: '1.5rem' }}>💃🏻</Fab>
)
})
vm.$('.mdc-fab').should.not.have.class('material-icons')
vm.$('.mdc-fab__icon').should.not.exist
})

describe('attrs', function () {
attrTest(it, 'mdc-fab', Fab, [
'mini',
Expand Down

0 comments on commit e662e7f

Please sign in to comment.