mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
add tests to readme
This commit is contained in:
@ -2,8 +2,8 @@
|
|||||||
#### Test it out!
|
#### Test it out!
|
||||||
|
|
||||||
- Run `gulp watch` to build, serve, and watch Ionic & playground
|
- Run `gulp watch` to build, serve, and watch Ionic & playground
|
||||||
- Run `gulp karma-watch` while gulp watch is running to watch tests. Unit tests run on compiled files in dist.
|
- Run `gulp karma-watch` while gulp watch is running to watch tests.
|
||||||
- All test files must be suffixed with `_spec.js`.
|
- All test files must be suffixed with `.spec.js`. Don't put a test as a sibling of a normal file, or import will decide the `.spec.js`is the same as the `.js`.
|
||||||
|
|
||||||
#### Building & Running
|
#### Building & Running
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ Promise.all(
|
|||||||
if (module.hasOwnProperty('run')) {
|
if (module.hasOwnProperty('run')) {
|
||||||
module.run();
|
module.run();
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Module ' + path + ' does not implement run() method.');
|
console.warn('WARNING: Module ' + path + ' does not implement a run() method. No tests run.');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}))
|
}))
|
||||||
|
Reference in New Issue
Block a user