Skip to content

shouldjs extensions to make testing reactjs a little easier

Notifications You must be signed in to change notification settings

p-equis/should-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

should-react

shouldjs extensions to make testing reactjs a little easier

Build Status

use cases

  • checking that a component exists
var rootComponent = ReactTestUtils.renderIntoDocument(...);
var SubComponent = require(...);

rootComponent.should.containComponentWithType(SubComponent);
  • or that it doesn't, using normal shouldjs chaining:
rootComponent.should.not.containComponentWithType(SubComponent);

About

shouldjs extensions to make testing reactjs a little easier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published