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(lint): migrate ava tests to jest #912

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Jan 27, 2020

migrate lint tests from ava to jest

Description

Most of lint tests are ok, i found few "mistakes" in them and i fixed them (see comments)

How Has This Been Tested?

Unrelated

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

);

t.true(error.message.indexOf('rule type-enum must be number') > -1);
t.true(error.message.indexOf('rule type-enum must be number') > -1);
Copy link
Contributor Author

@armano2 armano2 Jan 27, 2020

Choose a reason for hiding this comment

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

instead of checking this 2 times we should check

'rule type-enum must be number'
'rule header-max-length must be number'


t.true(error.message.indexOf('rule type-enum must be between 0 and 2') > -1);
t.true(error.message.indexOf('rule type-enum must be between 0 and 2') > -1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

instead of checking this 2 times we should check

'rule type-enum must be between 0 and 2'
'rule header-max-length must be between 0 and 2'

@armano2
Copy link
Contributor Author

armano2 commented Jan 27, 2020

i missed #908 that starts refactoring of lint to typescript, feel free to close this is already done

@byCedric
Copy link
Member

No it's ok, I only started on the types. It's blocked by @commitlint/load, so I'll merge it ❤️

@byCedric byCedric merged commit 4889cee into conventional-changelog:master Jan 27, 2020
@armano2 armano2 deleted the lint-test branch January 27, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants