mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added copy server support, allowing the duplication of existing servers with the option to make certain modifications. #6085 (#7106)
Added copy server support, allowing the duplication of existing servers with the option to make certain modifications. #6085
This commit is contained in:
@@ -42,6 +42,10 @@ describe('ServerSchema', ()=>{
|
||||
let state = {};
|
||||
let setError = jest.fn();
|
||||
|
||||
schemaObj.validate(state, setError);
|
||||
expect(setError).toHaveBeenCalledWith('gid', 'Server group must be specified.');
|
||||
|
||||
state.gid = 1;
|
||||
schemaObj.validate(state, setError);
|
||||
expect(setError).toHaveBeenCalledWith('host', 'Either Host name or Service must be specified.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user