File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
.dev/assets/admin/js/common-action-modal/test Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -82,23 +82,6 @@ describe( 'go-deactivate-modal', () => {
8282 jest . clearAllMocks ( ) ;
8383 } ) ;
8484
85- describe ( 'fetchData' , ( ) => {
86- test ( 'should return feedback data' , async ( ) => {
87- const response = await fetchData ( 'foo.com' ) ;
88- expect ( response ) . toEqual ( mockData ) ;
89- } ) ;
90-
91- test ( 'should call the fetch api' , async ( ) => {
92- const fetchMock = jest . spyOn ( global , 'fetch' ) ;
93-
94- await act ( async ( ) => {
95- wrapper = setup ( ) ;
96- } ) ;
97-
98- expect ( fetchMock ) . toHaveBeenCalledWith ( 'https://wpnux.godaddy.com/v3/api/feedback/go-theme-optout?domain=foo.com&language=en-US&random=1' ) ;
99- } ) ;
100- } ) ;
101-
10285 describe ( 'closed state' , ( ) => {
10386 beforeEach ( async ( ) => {
10487 await act ( async ( ) => {
You can’t perform that action at this time.
0 commit comments