Skip to content

Commit

Permalink
chore: master to alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorrusakov authored and PKulkoRaccoonGang committed Aug 5, 2024
1 parent 9f82290 commit ad4b847
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,9 @@
"overrides": {
"@testing-library/dom": "9.3.3"
},
"workspaces": [
"example",
"component-generator",
"www",
"icons",
"dependent-usage-analyzer"
]
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
}
}
12 changes: 12 additions & 0 deletions src/Form/tests/FormAutosuggest.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,18 @@ describe('controlled behavior', () => {

expect(formControlFeedback.text()).toEqual('Example error message');
});

it('renders with error msg', () => {
container.find('input').simulate('click');
act(() => {
const event = new Event('click', { bubbles: true });
document.dispatchEvent(event);
});
container.update();
const formControlFeedback = container.find('FormControlFeedback');

expect(formControlFeedback.text()).toEqual('Example error message');
});
});

describe('controlled behavior', () => {
Expand Down
2 changes: 2 additions & 0 deletions src/Icon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Displays an svg icon from `@openedx/paragon/icons`. See [Icons Foundation Docume

## Basic Usage

## Basic Usage

```jsx live
// Included in this live jsx scope:
// import { Add, AddCircle } from '@openedx/paragon/icons';
Expand Down

0 comments on commit ad4b847

Please sign in to comment.