Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Dec 13, 2023
1 parent 8d4c580 commit 6eced82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe('Test validate gdrive params', () => {
expect(
sourceConnector.areParametersValid({
token: 'test',
refresh_token: 'test',
refresh: 'test',
}),
).toBe(true);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Create Sync dto tests', () => {
expect(dto).toBeUndefined();
});

test('should not create a valid dto - connector params are not valid', () => {
test('should not create a valid dto - connector params are incomplete', () => {
const [error, dto] = CreateSyncDto.create({
...props,
id: undefined,
Expand All @@ -52,8 +52,8 @@ describe('Create Sync dto tests', () => {
},
});

expect(error).toEqual('Connector folder parameters are not valid');
expect(dto).toBeUndefined();
expect(error).toBeUndefined();
expect(dto).toBeDefined();
});

test('should not create a valid dto - kb params are not valid', () => {
Expand Down

0 comments on commit 6eced82

Please sign in to comment.