Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-24 18:43:35 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-24 18:43:35 +0400
commitfbd208a61dfc0d11545fa5c3131f4d2b44f03a69 (patch)
tree56e64b1767834c19bc800cd0a77068ba361e31a6 /tests/angularjs
parent3cb625805db007773a116715ecd21e58bbbbd12d (diff)
refs #5983 updated docs for test file naming as suggested by AngularJs style guide
Diffstat (limited to 'tests/angularjs')
-rw-r--r--tests/angularjs/README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/angularjs/README.md b/tests/angularjs/README.md
index 53c2b611e5..a50b688e1b 100644
--- a/tests/angularjs/README.md
+++ b/tests/angularjs/README.md
@@ -17,11 +17,11 @@ On Ubuntu you might be able to use the `scripts/install-ubuntu.sh` script. Have
## File structure
-We do not have a general `tests` folder containing all test files. Instead we create a file having the same name appended by `_spec.js` in the same directory.
+We do not have a general `tests` folder containing all test files. Instead we create a file having the same name appended by `.spec.js` in the same directory.
-For instance you want to test a file named `startfrom.js` then we create a file named `startfrom_spec.js`:
+For instance you want to test a file named `startfrom.js` then we create a file named `startfrom.spec.js`:
`plugins/CoreHome/angularjs/common/filters/startfrom.js` =>
-`plugins/CoreHome/angularjs/common/filters/startfrom_spec.js`
+`plugins/CoreHome/angularjs/common/filters/startfrom.spec.js`
## Execution
@@ -44,7 +44,7 @@ Before executing a test it'll always run [JSHint](http://www.jshint.com/) to det
Just in case you want to write a test for your jQuery code you can do this the same way. You might be interested in the [Chai jQuery](http://chaijs.com/plugins/chai-jquery) plugin.
## Examples
-* [Testing a filter](../../plugins/CoreHome/angularjs/common/filters/startfrom_spec.js)
-* [Testing a directive](../../plugins/CoreHome/angularjs/common/directives/autocomplete-matched_spec.js)
-* [Testing a service/provider/factory/model](../../plugins/CoreHome/angularjs/common/services/piwik_spec.js)
+* [Testing a filter](../../plugins/CoreHome/angularjs/common/filters/startfrom.spec.js)
+* [Testing a directive](../../plugins/CoreHome/angularjs/common/directives/autocomplete-matched.spec.js)
+* [Testing a service/provider/factory/model](../../plugins/CoreHome/angularjs/common/services/piwik.spec.js)
* See more examples in [AngularJS guide](http://docs.angularjs.org/guide/unit-testing)