standardise code style

Signed-off-by: Virginie Ky <virginie.ky@gmail.com>
Signed-off-by: Bart Duisters <bartduisters@bartduisters.com>
This commit is contained in:
Virginie Ky 2020-01-29 17:44:51 +01:00 committed by Bart Duisters
parent 5558b7efe9
commit 46dabd0b4d
7 changed files with 10 additions and 0 deletions

View File

@ -7,8 +7,10 @@ describe('<EventRow />', () => {
const props = {
name: 'events',
};
it('should render properly', () => {
const tree = renderer.create(<EventRow {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});

View File

@ -17,6 +17,7 @@ describe('<EventInput />', () => {
<EventInput {...props} />
</IntlProvider>
);
expect(tree).toMatchSnapshot();
});
});

View File

@ -21,8 +21,10 @@ describe('Admin | components | HeadersInput', () => {
onClick: jest.fn(),
onRemove: jest.fn(),
};
describe('should render properly', () => {
afterEach(cleanup);
it('should not crash', () => {
shallow(<HeadersInput {...props} />);
});
@ -33,6 +35,7 @@ describe('Admin | components | HeadersInput', () => {
<HeadersInput {...props} />
</IntlProvider>
);
expect(asFragment()).toMatchSnapshot();
});

View File

@ -22,6 +22,7 @@ describe('<Inputs />', () => {
<Inputs {...props} />
</IntlProvider>
);
expect(tree).toMatchSnapshot();
});
});

View File

@ -20,6 +20,7 @@ describe('<TriggerContainer />', () => {
<TriggerContainer {...props} />
</IntlProvider>
);
expect(tree).toMatchSnapshot();
});
});

View File

@ -41,6 +41,7 @@ describe('Admin | containers | SettingsPage', () => {
</GlobalContextProvider>
</IntlProvider>
);
expect(asFragment()).toMatchSnapshot();
});
});

View File

@ -41,6 +41,7 @@ describe('Admin | containers | EditView', () => {
</GlobalContextProvider>
</IntlProvider>
);
expect(asFragment()).toMatchSnapshot();
});
});