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(cli): add test for get-userpoolgroup-list.ts #7227

Merged
merged 2 commits into from
May 4, 2021

Conversation

togami2864
Copy link
Contributor

Description of changes

Increase test coverage of amplify-cli.

Description of how you validated changes

lerna --scope @aws-amplify/cli run test

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@togami2864 togami2864 requested a review from a team as a code owner May 1, 2021 04:09
@codecov-commenter
Copy link

codecov-commenter commented May 1, 2021

Codecov Report

Merging #7227 (018fa30) into master (ec1613e) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7227      +/-   ##
==========================================
+ Coverage   52.28%   52.30%   +0.01%     
==========================================
  Files         491      492       +1     
  Lines       25242    25251       +9     
  Branches     4952     4952              
==========================================
+ Hits        13199    13208       +9     
  Misses      11091    11091              
  Partials      952      952              
Impacted Files Coverage Δ
...tensions/amplify-helpers/get-userpoolgroup-list.ts 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec1613e...018fa30. Read the comment docs.

@@ -0,0 +1,43 @@
import { getUserPoolGroupList } from '../../../../src/extensions/amplify-helpers/get-userpoolgroup-list';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can simplify this a bit:

Suggested change
import { getUserPoolGroupList } from '../../../../src/extensions/amplify-helpers/get-userpoolgroup-list';
import { getUserPoolGroupList } from '../../../extensions/amplify-helpers/get-userpoolgroup-list';

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I fixed it.

@cjihrig cjihrig self-assigned this May 4, 2021
@cjihrig cjihrig merged commit 972022c into aws-amplify:master May 4, 2021
@cjihrig
Copy link
Contributor

cjihrig commented May 4, 2021

Thank you for the contribution!

cjihrig pushed a commit to ctjlewis/amplify-cli that referenced this pull request Jul 12, 2021
This commit adds a test for get-userpoolgroup-list.ts
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.

4 participants