2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

refactor: apply eslint fixes (#1469)

This commit is contained in:
Jeff Sagal
2021-08-01 12:30:50 -07:00
committed by GitHub
parent a64ffc32d0
commit dd281aa8c6
85 changed files with 3616 additions and 3208 deletions
+21 -21
View File
@@ -1,35 +1,35 @@
import { mountDefault } from "../helpers";
import { mountDefault } from '../helpers'
describe("Search Slot Scope", () => {
describe('Search Slot Scope', () => {
/**
* @see https://www.w3.org/WAI/PF/aria/states_and_properties#aria-activedescendant
*/
describe("aria-activedescendant", () => {
it("adds the active descendant attribute only when the dropdown is open and there is a typeAheadPointer value", async () => {
const Select = mountDefault();
describe('aria-activedescendant', () => {
it('adds the active descendant attribute only when the dropdown is open and there is a typeAheadPointer value', async () => {
const Select = mountDefault()
expect(
Select.vm.scope.search.attributes["aria-activedescendant"]
).toEqual(undefined);
Select.vm.scope.search.attributes['aria-activedescendant']
).toEqual(undefined)
Select.vm.open = true;
await Select.vm.$nextTick();
Select.vm.open = true
await Select.vm.$nextTick()
expect(
Select.vm.scope.search.attributes["aria-activedescendant"]
).toEqual(undefined);
});
Select.vm.scope.search.attributes['aria-activedescendant']
).toEqual(undefined)
})
it("adds the active descendant attribute when there's a typeahead value and an open dropdown", async () => {
const Select = mountDefault();
const Select = mountDefault()
Select.vm.open = true;
Select.vm.typeAheadPointer = 1;
await Select.vm.$nextTick();
Select.vm.open = true
Select.vm.typeAheadPointer = 1
await Select.vm.$nextTick()
expect(
Select.vm.scope.search.attributes["aria-activedescendant"]
).toEqual(`vs${Select.vm.uid}__option-1`);
});
});
});
Select.vm.scope.search.attributes['aria-activedescendant']
).toEqual(`vs${Select.vm.uid}__option-1`)
})
})
})