Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate CI from Travis to Github Actions #685

Merged
merged 23 commits into from Feb 11, 2021
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

fix test

  • Loading branch information
fcjr committed Feb 10, 2021
commit c1629da63f840341f42bfba321f2c3781a1ba5ba
@@ -15,7 +15,7 @@ import React from 'react';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import { MemoryRouter } from 'react-router';
import Step1_LoginForm from '../Step1_LoginForm';
import Step1_LogInForm from '../Step1_LogInForm';

const noop = () => {};
describe('app/hub/Views/Step1_LoginForm component', () => {
@@ -33,7 +33,7 @@ describe('app/hub/Views/Step1_LoginForm component', () => {

const component = renderer.create(
<MemoryRouter>
<Step1_LoginForm {...initialState} />
<Step1_LogInForm {...initialState} />
</MemoryRouter>
).toJSON();
expect(component).toMatchSnapshot();
@@ -49,7 +49,7 @@ describe('app/hub/Views/Step1_LoginForm component', () => {
handleSubmit: jest.fn(),
}

const component = shallow(<Step1_LoginForm {...happyState} />);
const component = shallow(<Step1_LogInForm {...happyState} />);
expect(happyState.handleSubmit.mock.calls.length).toBe(0);
component.find('form').simulate('submit');
expect(happyState.handleSubmit.mock.calls.length).toBe(1);
@@ -65,7 +65,7 @@ describe('app/hub/Views/Step1_LoginForm component', () => {
handleSubmit: jest.fn(),
};

const component = shallow(<Step1_LoginForm {...sadState} />);
const component = shallow(<Step1_LogInForm {...sadState} />);

expect(sadState.handleSubmit.mock.calls.length).toBe(0);
component.find('form').simulate('submit');
ProTip! Use n and p to navigate between commits in a pull request.