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

@@ -27,8 +27,8 @@ describe('<DomainSelector />', () => {
afterEach(() => wrapper.unmount());
it.each([
[ '', 'Domain', 'domains-dropdown__toggle-btn' ],
[ 'my-domain.com', 'Domain: my-domain.com', 'domains-dropdown__toggle-btn--active' ],
['', 'Domain', 'domains-dropdown__toggle-btn'],
['my-domain.com', 'Domain: my-domain.com', 'domains-dropdown__toggle-btn--active'],
])('shows dropdown by default', (value, expectedText, expectedClassName) => {
const wrapper = createWrapper(value);
const input = wrapper.find(InputGroup);
@@ -54,9 +54,9 @@ describe('<DomainSelector />', () => {
});
it.each([
[ 0, 'default.com<span class="float-end text-muted">default</span>' ],
[ 1, 'foo.com' ],
[ 2, 'bar.com' ],
[0, 'default.com<span class="float-end text-muted">default</span>'],
[1, 'foo.com'],
[2, 'bar.com'],
])('shows expected content on every item', (index, expectedContent) => {
const item = createWrapper().find(DropdownItem).at(index);