Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(gitCommitService): add test cases #1047

Merged
merged 3 commits into from
Dec 6, 2023

Conversation

kishore03109
Copy link
Contributor

@kishore03109 kishore03109 commented Dec 3, 2023

add test cases for GitFileCommitService.

@kishore03109 kishore03109 force-pushed the 12-04-feat_gitFileSystem_safer_api branch from 5757b98 to 2a826b8 Compare December 4, 2023 04:13
@kishore03109 kishore03109 force-pushed the 12-04-test_gitCommitService_add_test_cases branch from d050e8c to 3d72484 Compare December 4, 2023 04:13
@kishore03109 kishore03109 marked this pull request as ready for review December 4, 2023 04:14
@kishore03109 kishore03109 requested a review from a team December 4, 2023 04:14
@kishore03109 kishore03109 force-pushed the 12-04-feat_gitFileSystem_safer_api branch from 2a826b8 to 3050748 Compare December 4, 2023 04:57
@kishore03109 kishore03109 force-pushed the 12-04-test_gitCommitService_add_test_cases branch from 3d72484 to 1bce332 Compare December 4, 2023 04:58
@kishore03109 kishore03109 force-pushed the 12-04-feat_gitFileSystem_safer_api branch from 3050748 to f812fd7 Compare December 6, 2023 01:20
@kishore03109 kishore03109 force-pushed the 12-04-test_gitCommitService_add_test_cases branch from 1bce332 to 6f5c0d1 Compare December 6, 2023 01:20
@kishore03109 kishore03109 force-pushed the 12-04-feat_gitFileSystem_safer_api branch from f812fd7 to ecc5966 Compare December 6, 2023 02:07
@kishore03109 kishore03109 force-pushed the 12-04-test_gitCommitService_add_test_cases branch from 6f5c0d1 to 0b1d0b9 Compare December 6, 2023 02:07
@kishore03109 kishore03109 force-pushed the 12-04-feat_gitFileSystem_safer_api branch from ecc5966 to c2f88d4 Compare December 6, 2023 02:08
@kishore03109 kishore03109 force-pushed the 12-04-test_gitCommitService_add_test_cases branch from 0b1d0b9 to 79ec119 Compare December 6, 2023 02:08
src/services/db/__tests__/GitFileCommitService.spec.ts Outdated Show resolved Hide resolved
sessionData.isomerUserId,
STAGING_BRANCH
)
expect(pushSpy).toHaveBeenCalledWith(sessionData, expect.any(Boolean))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should check if push was done to both staging & lite branch right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

applies to all the test cases :/
thanks for the catch, added 33bff68

})

// Assert
expect(deleteSpy).toHaveBeenCalledWith(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should assert if delete was called twice one for each branch right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sames as above

@kishore03109 kishore03109 requested a review from harishv7 December 6, 2023 07:17
@kishore03109 kishore03109 force-pushed the 12-04-test_gitCommitService_add_test_cases branch 2 times, most recently from 46c7528 to 3e85ab2 Compare December 6, 2023 07:53
Copy link
Contributor Author

kishore03109 commented Dec 6, 2023

Merge activity

@kishore03109 kishore03109 force-pushed the 12-04-feat_gitFileSystem_safer_api branch from 27d9fd6 to 7d9bced Compare December 6, 2023 10:56
@kishore03109 kishore03109 changed the base branch from 12-04-feat_gitFileSystem_safer_api to develop December 6, 2023 10:57
@kishore03109 kishore03109 force-pushed the 12-04-test_gitCommitService_add_test_cases branch from d2ab13c to b995436 Compare December 6, 2023 10:58
@kishore03109 kishore03109 merged commit 6bd471d into develop Dec 6, 2023
8 checks passed
@mergify mergify bot deleted the 12-04-test_gitCommitService_add_test_cases branch December 6, 2023 11:01
This was referenced Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants