Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
Fix media query test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianobermiller committed Jan 3, 2016
1 parent f4af38a commit 16e6def
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/__tests__/media-query-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,13 @@ describe('Media query tests', () => {
const output = TestUtils.renderIntoDocument(<TestComponent />);

const span = getElement(output, 'span');
expect(span.className.trim()).to.equal('4e3582ec');
const className = span.className.trim();
expect(className).to.not.be.empty;

const style = getElement(output, 'style');
expectCSS(style, `
@media (min-width:600px){
.4e3582ec{
.${className}{
background:red !important;
color:blue !important;
}
Expand Down

0 comments on commit 16e6def

Please sign in to comment.