Skip to content

Commit

Permalink
Update react-autowhatever to v10.1.2 (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kendall Whitman authored and moroshko committed Aug 16, 2018
1 parent 706162d commit c03cf69
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"prop-types": "^15.5.10",
"react-autowhatever": "^10.1.0",
"react-autowhatever": "^10.1.2",
"shallow-equal": "^1.0.0"
},
"peerDependencies": {
Expand Down
27 changes: 15 additions & 12 deletions test/plain-list/AutosuggestApp.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
expectInputValue,
getSuggestionsList,
getSuggestion,
expectContainerAttribute,
expectInputReferenceToBeSet,
expectSuggestions,
expectHighlightedSuggestion,
Expand Down Expand Up @@ -801,21 +802,23 @@ describe('Default Autosuggest', () => {

describe('aria attributes', () => {
describe('initially', () => {
describe("should set input's", () => {
describe("should set input container's", () => {
it('role to "combobox"', () => {
expectInputAttribute('role', 'combobox');
});

it('aria-autocomplete to "list"', () => {
expectInputAttribute('aria-autocomplete', 'list');
expectContainerAttribute('role', 'combobox');
});

it('aria-expanded to "false"', () => {
expectInputAttribute('aria-expanded', 'false');
expectContainerAttribute('aria-expanded', 'false');
});

it('aria-owns', () => {
expectInputAttribute('aria-owns', 'react-autowhatever-1');
expectContainerAttribute('aria-owns', 'react-autowhatever-1');
});
});

describe("should set input's", () => {
it('aria-autocomplete to "list"', () => {
expectInputAttribute('aria-autocomplete', 'list');
});
});

Expand All @@ -831,12 +834,12 @@ describe('Default Autosuggest', () => {
focusAndSetInputValue('J');
});

it('input\'s aria-expanded should be "true"', () => {
expectInputAttribute('aria-expanded', 'true');
it('input container\'s aria-expanded should be "true"', () => {
expectContainerAttribute('aria-expanded', 'true');
});

it("input's aria-owns should be equal to suggestions container id", () => {
expectInputAttribute(
it("input container's aria-owns should be equal to suggestions container id", () => {
expectContainerAttribute(
'aria-owns',
getSuggestionsContainerAttribute('id')
);
Expand Down

0 comments on commit c03cf69

Please sign in to comment.