mikaelvesavuori / figmagic

Figmagic is the missing piece between DevOps and design: Generate design tokens, export graphics, and extract design token-driven React components from your Figma documents.
https://docs.figmagic.com
MIT License
807 stars 71 forks source link

refactored getTokenEnumString and getTokenString functions into single one #137

Closed Ishmam156 closed 2 years ago

Ishmam156 commented 2 years ago

1. Description of the changes made:

Refactored getTokenEnumString and getTokenString to be a single function of getTokenString and ensured that the current tests that utilizes the getFileContentAndPath function still all pass.

Screenshot of the individual test passing is below:

Screen Shot 2021-10-12 at 1 18 50 PM

2. If this PR is related to an open issue please reference it with the # operator and the issue number\

closes #131

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Ishmam156 commented 2 years ago

It’s a wonderful project, @mikaelvesavuori! Stumbled upon it on the hacktoberfest discord - will try to see if I can help with anything further.

Thank you for being kind enough to add to the list of contributors :)