Skip to content

Commit 309c6ef

Browse files
author
Jaipreet Singh
committed
Assert for GET in tests
1 parent 69fbf2e commit 309c6ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test-components/DiffWidget.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ describe('DiffWidget', () => {
4444
// Then
4545
expect(result).toBe(expectedResult);
4646
expect(httpGitRequest).toHaveBeenCalled();
47-
expect(httpGitRequest).toBeCalledWith('/git/server_root', 'POST', {});
47+
expect(httpGitRequest).toBeCalledWith('/git/server_root', 'GET', null);
4848
}
4949
});

0 commit comments

Comments
 (0)