mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 21:51:26 -03:30
fix App.jsx test misnamed variables
This commit is contained in:
parent
79e68b1dbe
commit
fba1a5b71a
@ -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);
|
||||
});
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user