The task is to debug, not to refractor
I know that it is "static" properties, but i tried other variants and failed =)
In test: "when a name with white space around it from guest list is presented, entrance should be allowed" Tests should not throw errors:
TypeError: Cannot read property 'name' of undefined at Test.it at partyCandidates.name at Test.describe
This comment is hidden because it contains spoiler information about the solution
Also, Try starting with some simpler tests. Lists of 1 person to allow/deny for all the possible reasons before moving on to groups.
Having the firsts tests give you useful feedback about what the kata is suposed to return would be helpful.
Currently when running the tests from the setup:
TypeError: Cannot read property 'length' of undefined at Test.it at partyCandidates.name at Test.describe
Yup I also think so, others just framed a completely new solution.
P.S. - Mine was also close enough; I guess?
Here's an interesting read: http://programmers.stackexchange.com/questions/278652/how-much-should-i-be-using-let-vs-const-in-es6
You are right, that would be much better.
Guess it depends if you want to just to do bug fixing or refactoring as well. But I agree it may be a bit extreme :)
Loading collection data...
The task is to debug, not to refractor
I know that it is "static" properties, but i tried other variants and failed =)
In test: "when a name with white space around it from guest list is presented, entrance should be allowed"
Tests should not throw errors:
This comment is hidden because it contains spoiler information about the solution
Also, Try starting with some simpler tests.
Lists of 1 person to allow/deny for all the possible reasons before moving on to groups.
Having the firsts tests give you useful feedback about what the kata is suposed to return would be helpful.
Currently when running the tests from the setup:
Yup I also think so, others just framed a completely new solution.
P.S. - Mine was also close enough; I guess?
Here's an interesting read:
http://programmers.stackexchange.com/questions/278652/how-much-should-i-be-using-let-vs-const-in-es6
You are right, that would be much better.
Guess it depends if you want to just to do bug fixing or refactoring as well. But I agree it may be a bit extreme :)