Commit 62f7091e authored by Arthur Verschaeve's avatar Arthur Verschaeve

Angular: move test dependencies to main `package.json`

parent 9f4578d6
...@@ -7,6 +7,8 @@ node_modules/angular-route/* ...@@ -7,6 +7,8 @@ node_modules/angular-route/*
!node_modules/angular-route/angular-route.js !node_modules/angular-route/angular-route.js
node_modules/angular-mocks/* node_modules/angular-mocks/*
node_modules/karma/*
node_modules/.bin/*
node_modules/todomvc-app-css/* node_modules/todomvc-app-css/*
!node_modules/todomvc-app-css/index.css !node_modules/todomvc-app-css/index.css
......
{ {
"private": true, "private": true,
"scripts": {
"test": "karma start test/config/karma.conf.js"
},
"dependencies": { "dependencies": {
"angular": "^1.3.12", "angular": "^1.3.12",
"todomvc-common": "^1.0.0", "todomvc-common": "^1.0.0",
...@@ -7,6 +10,7 @@ ...@@ -7,6 +10,7 @@
"angular-route": "^1.3.12" "angular-route": "^1.3.12"
}, },
"devDependencies": { "devDependencies": {
"angular-mocks": "^1.3.12" "angular-mocks": "^1.3.12",
"karma": "^0.10.0"
} }
} }
...@@ -34,3 +34,12 @@ Get help from other AngularJS users: ...@@ -34,3 +34,12 @@ Get help from other AngularJS users:
* [AngularjS on Google +](https://plus.google.com/+AngularJS/posts) * [AngularjS on Google +](https://plus.google.com/+AngularJS/posts)
_If you have other helpful links to share, or find any of the links above no longer work, please [let us know](https://github.com/tastejs/todomvc/issues)._ _If you have other helpful links to share, or find any of the links above no longer work, please [let us know](https://github.com/tastejs/todomvc/issues)._
## Testsuite
The app uses [Karma](http://karma-runner.github.io/0.12/index.html) to run the tests located in the `test/` folder. To run the tests:
```
$ npm install
$ npm test
```
{
"name": "todomvc-angular-tests",
"description": "Unit tests for the AngularJS example of TodoMVC",
"author": "Pascal Hartig <phartig@rdrei.net>",
"version": "1.0.0",
"devDependencies": {
"karma": "^0.10.0"
},
"scripts": {
"test": "karma start config/karma.conf.js"
},
"dependencies": {}
}
Angular Unit Tests
==================
To run the test suite, run these commands:
npm install
npm test
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment