X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/cbe483113381e8c22b28a042479f5b7374a84744..f7a4118c87ae1df4a42efdad3695e6fcb5d60854:/src/components/search-input/search-input.test.tsx?ds=sidebyside

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);
