mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
Remove useless tests
This commit is contained in:
parent
a01012f990
commit
7de298ea81
@ -49,25 +49,6 @@ describe('useAddPasswordOperation', () => {
|
|||||||
mockUseToolOperation.mockReturnValue(mockToolOperationReturn);
|
mockUseToolOperation.mockReturnValue(mockToolOperationReturn);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should configure useToolOperation with correct parameters', () => {
|
|
||||||
renderHook(() => useAddPasswordOperation());
|
|
||||||
|
|
||||||
expect(mockUseToolOperation).toHaveBeenCalledWith({
|
|
||||||
operationType: 'addPassword',
|
|
||||||
endpoint: '/api/v1/security/add-password',
|
|
||||||
buildFormData: expect.any(Function),
|
|
||||||
filePrefix: 'translated-addPassword.filenamePrefix_',
|
|
||||||
multiFileEndpoint: false,
|
|
||||||
getErrorMessage: 'error-handler-function'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should return the result from useToolOperation', () => {
|
|
||||||
const { result } = renderHook(() => useAddPasswordOperation());
|
|
||||||
|
|
||||||
expect(result.current).toBe(mockToolOperationReturn);
|
|
||||||
});
|
|
||||||
|
|
||||||
test.each([
|
test.each([
|
||||||
{
|
{
|
||||||
description: 'with all parameters filled',
|
description: 'with all parameters filled',
|
||||||
|
@ -48,25 +48,6 @@ describe('useChangePermissionsOperation', () => {
|
|||||||
mockUseToolOperation.mockReturnValue(mockToolOperationReturn);
|
mockUseToolOperation.mockReturnValue(mockToolOperationReturn);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should configure useToolOperation with correct parameters', () => {
|
|
||||||
renderHook(() => useChangePermissionsOperation());
|
|
||||||
|
|
||||||
expect(mockUseToolOperation).toHaveBeenCalledWith({
|
|
||||||
operationType: 'changePermissions',
|
|
||||||
endpoint: '/api/v1/security/add-password',
|
|
||||||
buildFormData: expect.any(Function),
|
|
||||||
filePrefix: 'permissions_',
|
|
||||||
multiFileEndpoint: false,
|
|
||||||
getErrorMessage: 'error-handler-function'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
test('should return the result from useToolOperation', () => {
|
|
||||||
const { result } = renderHook(() => useChangePermissionsOperation());
|
|
||||||
|
|
||||||
expect(result.current).toBe(mockToolOperationReturn);
|
|
||||||
});
|
|
||||||
|
|
||||||
test.each([
|
test.each([
|
||||||
{
|
{
|
||||||
preventAssembly: false,
|
preventAssembly: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user