Skip to content

Conversation

@c0de1ovr
Copy link
Contributor

Only dash-cased names allowed

'´'
];
specialChars.forEach(character => {
expect(instance.safelyCreateNpmScopeArg(`${character}foo-bar`)).toBe(
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could simplify this test a bit by using the specialChars with a join(''), that way you can remove the forEach iteration, the test is a bit leaner and you would also cover that the characters should be replaced globally and not just once - Aside from that little thing, awesome job! 💯

@Inkdpixels Inkdpixels merged commit 742fc16 into ImmoweltGroup:master Dec 12, 2017
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