[arvados-workbench2] updated: 2.4.0-254-g6887b04c

git repository hosting git at public.arvados.org
Wed Oct 19 17:38:53 UTC 2022


Summary of changes:
 src/components/search-input/search-input.test.tsx | 5 +++++
 1 file changed, 5 insertions(+)

       via  6887b04c343ddb0966415456774717cb38835fea (commit)
      from  cbe483113381e8c22b28a042479f5b7374a84744 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 6887b04c343ddb0966415456774717cb38835fea
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Wed Oct 19 14:38:31 2022 -0300

    19311: Improves unit test.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/src/components/search-input/search-input.test.tsx b/src/components/search-input/search-input.test.tsx
index ff1d30c4..ba70f752 100644
--- a/src/components/search-input/search-input.test.tsx
+++ b/src/components/search-input/search-input.test.tsx
@@ -104,6 +104,11 @@ describe("<SearchInput />", () => {
             expect(onSearch).toBeCalledWith("");
             expect(onSearch).toHaveBeenCalledTimes(1);
 
+            // component should not clear on same selfClearProp
+            searchInput.setProps({ selfClearProp: 'abc' });
+            jest.runTimersToTime(1000);
+            expect(onSearch).toHaveBeenCalledTimes(1);
+
             // component should clear on selfClearProp change
             searchInput.setProps({ selfClearProp: '111' });
             jest.runTimersToTime(1000);

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list