Skip to content

Instantly share code, notes, and snippets.

@jkneal
Created May 28, 2015 18:57
Show Gist options
  • Save jkneal/a3b636331b85b8ffbc53 to your computer and use it in GitHub Desktop.
Save jkneal/a3b636331b85b8ffbc53 to your computer and use it in GitHub Desktop.
var React = require('react/addons')
var Router = require('react-router')
var TestUtils = React.addons.TestUtils
var state = require('../../state')
var routes = require('../../routes')
var getIntlData = require('../../../../client/app/i18n/data')
var GroupsUsers = require('../../authed')
var root = state.cursor()
var intlData = getIntlData()
describe('Groups Home', function() {
it('render', function() {
Router.run(routes, '/', function (handler) {
expect(true).toBe(false)
var Handler = <Handler root={root} {...intlData} menuItems={[]} menuImg="identity/img/kualigroups.svg"/>
var container = TestUtils.renderIntoDocument(Handler)
var div = TestUtils.findRenderedComponentWithType(container, GroupsUsers)
expect(div).toBeDefined()
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment