mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
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:
parent
5558b7efe9
commit
46dabd0b4d
@ -7,8 +7,10 @@ describe('<EventRow />', () => {
|
||||
const props = {
|
||||
name: 'events',
|
||||
};
|
||||
|
||||
it('should render properly', () => {
|
||||
const tree = renderer.create(<EventRow {...props} />).toJSON();
|
||||
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
|
||||
|
||||
@ -17,6 +17,7 @@ describe('<EventInput />', () => {
|
||||
<EventInput {...props} />
|
||||
</IntlProvider>
|
||||
);
|
||||
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
@ -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();
|
||||
});
|
||||
|
||||
|
||||
@ -22,6 +22,7 @@ describe('<Inputs />', () => {
|
||||
<Inputs {...props} />
|
||||
</IntlProvider>
|
||||
);
|
||||
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
@ -20,6 +20,7 @@ describe('<TriggerContainer />', () => {
|
||||
<TriggerContainer {...props} />
|
||||
</IntlProvider>
|
||||
);
|
||||
|
||||
expect(tree).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
@ -41,6 +41,7 @@ describe('Admin | containers | SettingsPage', () => {
|
||||
</GlobalContextProvider>
|
||||
</IntlProvider>
|
||||
);
|
||||
|
||||
expect(asFragment()).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
@ -41,6 +41,7 @@ describe('Admin | containers | EditView', () => {
|
||||
</GlobalContextProvider>
|
||||
</IntlProvider>
|
||||
);
|
||||
|
||||
expect(asFragment()).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user