Updated to airbnb coding styles

This commit is contained in:
Alejandro Celaya
2022-03-26 12:17:42 +01:00
parent 4e9b19afd1
commit a2df486280
239 changed files with 2210 additions and 3549 deletions

View File

@@ -16,8 +16,8 @@ describe('<HighlightCard />', () => {
afterEach(() => wrapper?.unmount());
it.each([
[ undefined ],
[ false ],
[undefined],
[false],
])('renders expected components', (link) => {
const wrapper = createWrapper({ title: 'foo', link: link as undefined | false });
@@ -30,9 +30,9 @@ describe('<HighlightCard />', () => {
});
it.each([
[ 'foo' ],
[ 'bar' ],
[ 'baz' ],
['foo'],
['bar'],
['baz'],
])('renders provided title', (title) => {
const wrapper = createWrapper({ title });
const cardTitle = wrapper.find(CardTitle);
@@ -41,9 +41,9 @@ describe('<HighlightCard />', () => {
});
it.each([
[ 'foo' ],
[ 'bar' ],
[ 'baz' ],
['foo'],
['bar'],
['baz'],
])('renders provided children', (children) => {
const wrapper = createWrapper({ title: 'foo', children });
const cardText = wrapper.find(CardText);
@@ -52,9 +52,9 @@ describe('<HighlightCard />', () => {
});
it.each([
[ 'foo' ],
[ 'bar' ],
[ 'baz' ],
['foo'],
['bar'],
['baz'],
])('adds extra props when a link is provided', (link) => {
const wrapper = createWrapper({ title: 'foo', link });