chore(test): make test descriptions consistent - #3112
Conversation
|
@johnpapa @Brocco @filipesilva What do you think? We use that standard in our own tests ( |
|
@hansl you mean wrapping the |
|
@johnpapa No, look at the changes. Basically the tests generated by the CLI right now look like this: describe('Component: Blah', () => {
// ...
});With this PR it would look like this: describe('BlahComponent', () => {
// ...
});(the name of the class itself is |
|
sorry, a few different things in the comments. yes, i agree. |
|
LGTM. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Components are called:
<%= classifiedModuleName %>Directiveand it was bothering me that the rest were like:Service: <%= classifiedModuleName %>.Another change I'd like to make but would like approval first, is to wrap the first generated test in another describe like so:
I think it makes tests a little more organised and easier to read. I got the idea from reading the Http specs within angular/angular: https://github.com/angular/angular/blob/master/modules/%40angular/http/test/http_spec.ts#L108