fix App.jsx test misnamed variables

This commit is contained in:
John Mitchell 2018-10-24 21:15:08 -04:00
parent 79e68b1dbe
commit fba1a5b71a
No known key found for this signature in database
GPG Key ID: FE6A9B5BD4EB5C94

View File

@ -17,10 +17,10 @@ describe('<App />', () => {
const appWrapper = mount(<App />);
const redirectChild = appWrapper.find(Login);
expect(redirectChild.length).toBe(1);
const routeChild = appWrapper.find(Dashboard);
expect(routeChild.length).toBe(0);
const login = appWrapper.find(Login);
expect(login.length).toBe(1);
const dashboard = appWrapper.find(Dashboard);
expect(dashboard.length).toBe(0);
});
test('renders dashboard when authenticated', () => {
@ -29,9 +29,9 @@ describe('<App />', () => {
const appWrapper = mount(<App />);
const redirectChild = appWrapper.find(Dashboard);
expect(redirectChild.length).toBe(1);
const routeChild = appWrapper.find(Login);
expect(routeChild.length).toBe(0);
const dashboard = appWrapper.find(Dashboard);
expect(dashboard.length).toBe(1);
const login = appWrapper.find(Login);
expect(login.length).toBe(0);
});
});