Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird diff with style attribute #19

Closed
pawelgalazka opened this issue May 26, 2015 · 0 comments
Closed

Weird diff with style attribute #19

pawelgalazka opened this issue May 26, 2015 · 0 comments

Comments

@pawelgalazka
Copy link

AcademyProgressBar should render as 67% done when two out of three assignments are done:
     Error:
expected <div class="progress" data-reactid=".0.0.0" style="width: 67%; : "></div>
to have attribute { style: { width: '37%' } }

<div class="progress" style="width: 67%; : undefined" // expected { width: '67%', '': undefined } to satisfy { width: '37%' }
                                                      //
                                                      // {
                                                      //   width: '67%', // should equal '37%'
                                                      //                 // -67%
                                                      //                 // +37%
                                                      //   '': undefined
                                                      // }
     data-reactid=".0.0.0"></div>
      at Context.<anonymous> (app/assets/javascripts/components/AcademyProgressBar/AcademyProgressBar-mocha.jsx:76:5)
    expect(instance.refs['progress'].getDOMNode(), 'to have attribute', {
      style: {
        width: '37%'
      }
    });
@Munter Munter closed this as completed in 43db5bc May 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant