From 54921b06d273528f78398d893c8979afd71a63ed Mon Sep 17 00:00:00 2001 From: nevermore Date: Tue, 5 Mar 2024 18:04:02 +0800 Subject: [PATCH] feat:lint --- components/lib/editor/Editor.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lib/editor/Editor.spec.js b/components/lib/editor/Editor.spec.js index d40fce4008..b2fe287997 100644 --- a/components/lib/editor/Editor.spec.js +++ b/components/lib/editor/Editor.spec.js @@ -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); @@ -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); }}