[ARVADOS-WORKBENCH2] updated: 1.2.0-682-g868cd8e

Git user git at public.curoverse.com
Tue Oct 16 09:29:53 EDT 2018


Summary of changes:
 .../search-bar/search-bar-view.test.tsx            | 27 ----------------------
 1 file changed, 27 deletions(-)

       via  868cd8ed747dfd61aa7e36e9e77afe6f48e81e2c (commit)
      from  8f9c0f8db2b7f266ef9d88377966ac2b6ec90764 (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 868cd8ed747dfd61aa7e36e9e77afe6f48e81e2c
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Tue Oct 16 15:29:42 2018 +0200

    refs #delete unnecesary test
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/views-components/search-bar/search-bar-view.test.tsx b/src/views-components/search-bar/search-bar-view.test.tsx
index 6db80a9..c133e03 100644
--- a/src/views-components/search-bar/search-bar-view.test.tsx
+++ b/src/views-components/search-bar/search-bar-view.test.tsx
@@ -21,33 +21,6 @@ describe("<SearchBarView />", () => {
         onSearch = jest.fn();
     });
 
-    describe("on submit", () => {
-        it("calls onSearch with current value", () => {
-            const searchBar = mount(<SearchBarView onSearch={onSearch} value="current value" {...mockSearchProps()} />);
-            searchBar.find("input").simulate("change", { target: { value: "current value" } });
-            searchBar.find("form").simulate("submit");
-            expect(onSearch).toBeCalledWith("current value");
-        });
-
-        it("calls onSearch with new value passed via props", () => {
-            const searchBar = mount(<SearchBarView onSearch={onSearch} value="current value" {...mockSearchProps()} />);
-            searchBar.find("input").simulate("change", { target: { value: "new value" } });
-            searchBar.setProps({ value: "new value" });
-            searchBar.find("form").simulate("submit");
-            expect(onSearch).toBeCalledWith("new value");
-        });
-
-        it("cancels timeout set on input value change", () => {
-            const searchBar = mount(<SearchBarView onSearch={onSearch} debounce={1000} value="current value" {...mockSearchProps()} />);
-            searchBar.find("input").simulate("change", { target: { value: "current value" } });
-            searchBar.find("form").simulate("submit");
-            jest.runTimersToTime(1000);
-            expect(onSearch).toHaveBeenCalledTimes(1);
-            expect(onSearch).toBeCalledWith("current value");
-        });
-
-    });
-
     describe("on input value change", () => {
         it("calls onSearch after default timeout", () => {
             const searchBar = mount(<SearchBarView onSearch={onSearch} value="current value" {...mockSearchProps()} />);

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list