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

Typescript migration #23

Merged
merged 3 commits into from
Jan 3, 2023
Merged

Conversation

wadjih-bencheikh18
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jan 3, 2023

Codecov Report

Base: 89.07% // Head: 85.10% // Decreases project coverage by -3.97% ⚠️

Coverage data is based on head (0a963aa) compared to base (fe011f8).
Patch coverage: 92.63% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   89.07%   85.10%   -3.98%     
==========================================
  Files          44       37       -7     
  Lines         412      329      -83     
  Branches       83       84       +1     
==========================================
- Hits          367      280      -87     
- Misses         45       49       +4     
Impacted Files Coverage Δ
src/formats.ts 100.00% <ø> (ø)
src/parse/fieldTemplates.ts 100.00% <ø> (ø)
src/parsers/parseDocumentNumberCheckDigit.ts 100.00% <ø> (ø)
src/parsers/parseDocumentNumberOptional.ts 62.50% <ø> (ø)
src/parsers/parsePersonalNumberCheckDigit.ts 88.88% <ø> (ø)
src/parse/swissDrivingLicense.ts 66.66% <66.66%> (ø)
src/parse/td1.ts 77.77% <77.77%> (ø)
src/parse/createFieldParser.ts 95.34% <92.30%> (ø)
src/generated/states.ts 100.00% <100.00%> (ø)
src/parse/checkLines.ts 66.66% <100.00%> (ø)
... and 28 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

.eslintignore Outdated Show resolved Hide resolved
@lpatiny lpatiny merged commit b6c0c54 into cheminfo:master Jan 3, 2023
src/index.ts Show resolved Hide resolved
Comment on lines +96 to +97
if (typeof e === 'string') {
result.error = e;
Copy link
Member

Choose a reason for hiding this comment

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

this is weird. we should never throw strings

Copy link
Member Author

Choose a reason for hiding this comment

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

in our case yes.
i made this to make the general case that's all

Copy link
Member

Choose a reason for hiding this comment

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

please keep it simple. we have rules that prevent throwing strings.

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.

3 participants