Skip to content

Commit a34d49f

Browse files
author
Kent C. Dodds
committed
Adds testability argument to constants section.
1 parent 183bb2e commit a34d49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ For anything else, API reference, check the [Angular documentation](//docs.angul
11081108
11091109
- **Vendor Globals**: Create an AngularJS Constant for vendor libraries' global variables.
11101110
1111-
*Why?*: Provides a way to inject vendor libraries that otherwise are globals.
1111+
*Why?*: Provides a way to inject vendor libraries that otherwise are globals. This improves testability of your code by allowing you to more easily know what the dependencies of your directives/services/controllers/etc. are (avoids leaky abstractions) and it also allows you to mock these dependencies if that makes sense.
11121112
11131113
```javascript
11141114
// constants.js

0 commit comments

Comments
 (0)