diff options
Diffstat (limited to 'js/vendor/angular-mocks/README.md')
-rw-r--r-- | js/vendor/angular-mocks/README.md | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/js/vendor/angular-mocks/README.md b/js/vendor/angular-mocks/README.md index 1604ef880..440cce9b7 100644 --- a/js/vendor/angular-mocks/README.md +++ b/js/vendor/angular-mocks/README.md @@ -14,10 +14,16 @@ You can install this package either with `npm` or with `bower`. npm install angular-mocks ``` -The mocks are then available at `node_modules/angular-mocks/angular-mocks.js`. - -Note that this package is not in CommonJS format, so doing `require('angular-mocks')` will -return `undefined`. +You can `require` ngMock modules: + +```js +var angular = require('angular'); +angular.module('myMod', [ + require('angular-animate'), + require('angular-mocks/ngMock') + require('angular-mocks/ngAnimateMock') +]); +``` ### bower @@ -36,7 +42,7 @@ Documentation is available on the The MIT License -Copyright (c) 2010-2012 Google, Inc. http://angularjs.org +Copyright (c) 2010-2015 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal |