mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
fix App.jsx test misnamed variables
This commit is contained in:
@@ -17,10 +17,10 @@ describe('<App />', () => {
|
|||||||
|
|
||||||
const appWrapper = mount(<App />);
|
const appWrapper = mount(<App />);
|
||||||
|
|
||||||
const redirectChild = appWrapper.find(Login);
|
const login = appWrapper.find(Login);
|
||||||
expect(redirectChild.length).toBe(1);
|
expect(login.length).toBe(1);
|
||||||
const routeChild = appWrapper.find(Dashboard);
|
const dashboard = appWrapper.find(Dashboard);
|
||||||
expect(routeChild.length).toBe(0);
|
expect(dashboard.length).toBe(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('renders dashboard when authenticated', () => {
|
test('renders dashboard when authenticated', () => {
|
||||||
@@ -29,9 +29,9 @@ describe('<App />', () => {
|
|||||||
|
|
||||||
const appWrapper = mount(<App />);
|
const appWrapper = mount(<App />);
|
||||||
|
|
||||||
const redirectChild = appWrapper.find(Dashboard);
|
const dashboard = appWrapper.find(Dashboard);
|
||||||
expect(redirectChild.length).toBe(1);
|
expect(dashboard.length).toBe(1);
|
||||||
const routeChild = appWrapper.find(Login);
|
const login = appWrapper.find(Login);
|
||||||
expect(routeChild.length).toBe(0);
|
expect(login.length).toBe(0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user