Created
May 28, 2015 18:57
-
-
Save jkneal/a3b636331b85b8ffbc53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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