Skip to content

Commit

Permalink
fixes failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
brigand committed Jul 29, 2017
1 parent 7b93059 commit 2f1b7c3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/__tests__/ReactGlobalStyle-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe(`ReactGlobalStyle`, () => {
expect(el.style.color).toBe(`red`);
w.setProps({el, style: {}});
expect(el.style.color).toBe(``);
w.setProps({el});
w.setProps({el, style: undefined});
expect(el.style.color).toBe(``);
});

Expand All @@ -141,8 +141,7 @@ describe(`ReactGlobalStyle`, () => {
const w = mount(<ReactGlobalStyle style={{color: `red`}} el={el} />);
const w2 = mount(<ReactGlobalStyle style={{color: `blue`}} el={el} />);
expect(el.style.color).toBe('blue');
// w2.setProps({el, style: {}});
w2.setProps({el});
w2.setProps({el, style: undefined});
expect(el.style.color).toBe('red');
});

Expand Down

0 comments on commit 2f1b7c3

Please sign in to comment.