Skip to content

Commit b8e91e4

Browse files
committed
Remove fetchData test
1 parent 9c9a77c commit b8e91e4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

.dev/assets/admin/js/common-action-modal/test/index.spec.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff 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 () => {

0 commit comments

Comments
 (0)