mirror of
https://github.com/strapi/strapi.git
synced 2025-11-17 18:51:22 +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 = {
|
const props = {
|
||||||
name: 'events',
|
name: 'events',
|
||||||
};
|
};
|
||||||
|
|
||||||
it('should render properly', () => {
|
it('should render properly', () => {
|
||||||
const tree = renderer.create(<EventRow {...props} />).toJSON();
|
const tree = renderer.create(<EventRow {...props} />).toJSON();
|
||||||
|
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,7 @@ describe('<EventInput />', () => {
|
|||||||
<EventInput {...props} />
|
<EventInput {...props} />
|
||||||
</IntlProvider>
|
</IntlProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -21,8 +21,10 @@ describe('Admin | components | HeadersInput', () => {
|
|||||||
onClick: jest.fn(),
|
onClick: jest.fn(),
|
||||||
onRemove: jest.fn(),
|
onRemove: jest.fn(),
|
||||||
};
|
};
|
||||||
|
|
||||||
describe('should render properly', () => {
|
describe('should render properly', () => {
|
||||||
afterEach(cleanup);
|
afterEach(cleanup);
|
||||||
|
|
||||||
it('should not crash', () => {
|
it('should not crash', () => {
|
||||||
shallow(<HeadersInput {...props} />);
|
shallow(<HeadersInput {...props} />);
|
||||||
});
|
});
|
||||||
@ -33,6 +35,7 @@ describe('Admin | components | HeadersInput', () => {
|
|||||||
<HeadersInput {...props} />
|
<HeadersInput {...props} />
|
||||||
</IntlProvider>
|
</IntlProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(asFragment()).toMatchSnapshot();
|
expect(asFragment()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -22,6 +22,7 @@ describe('<Inputs />', () => {
|
|||||||
<Inputs {...props} />
|
<Inputs {...props} />
|
||||||
</IntlProvider>
|
</IntlProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -20,6 +20,7 @@ describe('<TriggerContainer />', () => {
|
|||||||
<TriggerContainer {...props} />
|
<TriggerContainer {...props} />
|
||||||
</IntlProvider>
|
</IntlProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(tree).toMatchSnapshot();
|
expect(tree).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -41,6 +41,7 @@ describe('Admin | containers | SettingsPage', () => {
|
|||||||
</GlobalContextProvider>
|
</GlobalContextProvider>
|
||||||
</IntlProvider>
|
</IntlProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(asFragment()).toMatchSnapshot();
|
expect(asFragment()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -41,6 +41,7 @@ describe('Admin | containers | EditView', () => {
|
|||||||
</GlobalContextProvider>
|
</GlobalContextProvider>
|
||||||
</IntlProvider>
|
</IntlProvider>
|
||||||
);
|
);
|
||||||
|
|
||||||
expect(asFragment()).toMatchSnapshot();
|
expect(asFragment()).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user