Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The kata is stuck at Node 8.
There are no random tests.
Design issue:
Angular
is already predefined and the tests expect the dependency graph to be cleared afterangular.bootstrap
for test reuse. But angular.bootstrap can only be used once anyway, so the kata is definitely not adhering to AngularJS standards.It should also be argued that
Angular
should be a class defined by the user, not in Preloaded, so we're not coming with our weird ways to keep track of dependencies in other global variables, and clearing the dependency graph by timing where one part of the test ends.(Speaking of which, currently when
angular.module
is called with dependencies it overwrites the existing dependency graph before doing validation. This is very unexpected; vaildation failure should not change the state of an object.)The order of the dependencies in
modules
array after bootstrap is not specified.Good kata with one very minor issue - the "Angular" constructor is locked, which makes it confusing to try to add a new property (for tracking dependencies). It is easy to workaround but may be worth mentioning in the description.