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

feat: coverage for adotokenstorage #900

Merged
merged 3 commits into from
Jun 20, 2022
Merged

Conversation

LiamMartens
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Jun 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
figma-tokens ✅ Ready (Inspect) Visit Preview Jun 19, 2022 at 4:16PM (UTC)
ft-storybook ✅ Ready (Inspect) Visit Preview Jun 19, 2022 at 4:16PM (UTC)

@github-actions
Copy link
Contributor

Commit SHA:dbf86580f456eba2bb318da74383c0aabe4942f6

Test coverage results 🧪

Code coverage diff between base branch:main and head branch: feat/coverage-for-adotokenstorage 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 39.68 (2.05) 31.7 (2.62) 36.54 (1.99) 39.66 (2.04)
🟢 src/app/components/PushDialog.tsx 48.39 (1.51) 24.32 (0) 50 (0) 48.39 (1.51)
🟢 src/app/store/useTokens.tsx 59.09 (18.18) 18.75 (18.75) 50 (31.25) 58.54 (17.08)
✨ 🆕 src/app/store/providers/getRepositoryInformation.ts 100 75 100 100
✨ 🆕 src/plugin/setColorValuesOnTarget.ts 90.32 81.03 100 96
🟢 src/selectors/localApiStateBranchSelector.ts 100 (75) 100 (100) 100 (100) 100 (75)
🟢 src/storage/ADOTokenStorage.ts 84.95 (83.89) 63.79 (63.79) 95.65 (95.65) 85.71 (84.62)
🟢 src/utils/formatTokens.ts 100 (0) 68.75 (6.25) 100 (0) 100 (0)

Copy link
Collaborator

@six7 six7 left a comment

Choose a reason for hiding this comment

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

One minor typo and one question for my understanding

src/storage/ADOTokenStorage.ts Outdated Show resolved Hide resolved
@@ -280,13 +285,13 @@ export class ADOTokenStorage extends GitTokenStorage {
return [
{
type: 'themes',
path: `${this.path}/$themes.json`,
path: this.path,
Copy link
Collaborator

Choose a reason for hiding this comment

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

So does this store $themes in the same file as the sets then? How did this even work before?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does - it has to because of how the multifile was set-up from the beginning. It is based on the filename. It was not possible to change the file structure anymore since it had alreayd been set in a flat file structure.

LiamMartens and others added 2 commits June 19, 2022 12:07
@github-actions
Copy link
Contributor

Commit SHA:edc2a0b1db0809ceba79a4db1341dfabdcbdfaca

Test coverage results 🧪

Code coverage diff between base branch:next and head branch: feat/coverage-for-adotokenstorage 
Status File % Stmts % Branch % Funcs % Lines
🟢 total 40.24 (1.31) 32.07 (1.06) 37.08 (1.48) 40.25 (1.36)
🟢 src/storage/ADOTokenStorage.ts 84.95 (83.87) 63.79 (63.79) 95.65 (95.65) 85.71 (84.61)

@six7 six7 merged commit bfc1029 into next Jun 20, 2022
MightyDevKnight pushed a commit that referenced this pull request Jun 20, 2022
* feat: Added coverage for ADO Token Storage

* chore: Typo

Co-authored-by: Jan Six <six.jan@gmail.com>

Co-authored-by: Jan Six <six.jan@gmail.com>
MightyDevKnight pushed a commit that referenced this pull request Jun 30, 2022
* feat: Added coverage for ADO Token Storage

* chore: Typo

Co-authored-by: Jan Six <six.jan@gmail.com>

Co-authored-by: Jan Six <six.jan@gmail.com>
MightyDevKnight pushed a commit that referenced this pull request Jun 30, 2022
* feat: Added coverage for ADO Token Storage

* chore: Typo

Co-authored-by: Jan Six <six.jan@gmail.com>

Co-authored-by: Jan Six <six.jan@gmail.com>
@six7 six7 deleted the feat/coverage-for-adotokenstorage branch July 23, 2022 07:41
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