Skip to content

Commit

Permalink
Add failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
vovkasm committed Dec 20, 2016
1 parent 1bbb25e commit d328516
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/stylesheets.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ describe('Stylesheet', function () {
'Header': {style: {fontSize: 10}},
'Header.active': {style: {fontWeight: 'bold'}}
})
s.addDefaultRules({
'Button Text': {style: {color: 'blue'}},
'Button.active Text': {style: {fontWeight: 'bold'}}
})
})
it('follow variants', function () {
expect(s.getProps('App Header', {}, ['active'])).to.be.deep.equal({
Expand All @@ -167,5 +171,10 @@ describe('Stylesheet', function () {
style: {fontSize: 10}
})
})
it.skip('follow parent variants', function () {
expect(s.getProps('Button.active Text')).to.be.deep.equal({
style: {color: 'blue', fontWeight: 'bold'}
})
})
})
})

0 comments on commit d328516

Please sign in to comment.