Skip to content

Commit

Permalink
feat:lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kl-nevermore committed Mar 5, 2024
1 parent edc4d23 commit 54921b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/lib/editor/Editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ describe('Editor', () => {
// https://github.com/primefaces/primereact/issues/6067
test('onTextChange handler does not reflect updated props', async () => {
const consoleSpy = jest.spyOn(console, 'log').mockImplementation();

function BasicDemo() {
const [state, setState] = useState(1);

Expand Down Expand Up @@ -40,6 +41,7 @@ describe('Editor', () => {
ref={ref}
value={text}
onTextChange={(e) => {
// eslint-disable-next-line no-console
console.log(`Editor. state is:${state}`);
setText(e.htmlValue);
}}
Expand Down

0 comments on commit 54921b0

Please sign in to comment.