Skip to content

Commit

Permalink
Update unit test cases
Browse files Browse the repository at this point in the history
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
  • Loading branch information
xinruiba committed Jan 8, 2024
1 parent 9577168 commit 092791b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ describe('DataSourceManagement: Form Validation', () => {
expect(result).toBe(false);
});
test('should NOT fail validation when endpoint path is empty', () => {
form.auth.type = AuthType.NoAuth;
form.title = 'test';
form.endpoint = mockDataSourceAttributesWithValidEndpoint.endpoint;
const result = performDataSourceFormValidation(form, [], '');
expect(result).toBe(false);
expect(result).toBe(true);
});
test('should NOT fail validation on empty username/password when No Auth is selected', () => {
form.auth.type = AuthType.NoAuth;
Expand Down

0 comments on commit 092791b

Please sign in to comment.