mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix karma tests
This commit is contained in:
@ -158,7 +158,7 @@ gulp.task('bundle', ['bundle.ionic'], function() {
|
|||||||
gulp.task('tests', function() {
|
gulp.task('tests', function() {
|
||||||
return gulp.src('ionic/components/*/test/*/**/*.spec.ts')
|
return gulp.src('ionic/components/*/test/*/**/*.spec.ts')
|
||||||
.pipe(tsc(tscOptions, null, tscReporter))
|
.pipe(tsc(tscOptions, null, tscReporter))
|
||||||
.pipe(babel(getBabelOptions('tests')))
|
.pipe(babel(getBabelOptions('dist/tests')))
|
||||||
.pipe(rename(function(file) {
|
.pipe(rename(function(file) {
|
||||||
file.dirname = file.dirname.replace(path.sep + 'test' + path.sep, path.sep)
|
file.dirname = file.dirname.replace(path.sep + 'test' + path.sep, path.sep)
|
||||||
}))
|
}))
|
||||||
|
@ -9,7 +9,6 @@ Promise.all(
|
|||||||
.filter(onlySpecFiles)
|
.filter(onlySpecFiles)
|
||||||
.map(window.file2moduleName) // Normalize paths to module names.
|
.map(window.file2moduleName) // Normalize paths to module names.
|
||||||
.map(function(path) {
|
.map(function(path) {
|
||||||
debugger;
|
|
||||||
return System.import(path).then(function(module) {
|
return System.import(path).then(function(module) {
|
||||||
if (module.hasOwnProperty('run')) {
|
if (module.hasOwnProperty('run')) {
|
||||||
module.run();
|
module.run();
|
||||||
|
Reference in New Issue
Block a user