File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import cypress from 'cypress';
2
2
import { CLIOptions } from 'aurelia-cli' ;
3
3
import config from '../../cypress.config' ;
4
4
5
- export default ( resolve ) => {
5
+ export default ( cb ) => {
6
6
if ( CLIOptions . hasFlag ( 'run' ) ) {
7
7
cypress
8
8
. run ( config )
9
- . then ( results => ( results . totalFailed === 0 ? resolve ( ) : resolve ( 'Run failed!' ) ) )
10
- . catch ( resolve ) ;
9
+ . then ( results => ( results . totalFailed === 0 ? cb ( ) : cb ( 'Run failed!' ) ) )
10
+ . catch ( cb ) ;
11
11
} else {
12
12
cypress . open ( config ) ;
13
13
}
Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import * as cypress from 'cypress';
2
2
import { CLIOptions } from 'aurelia-cli' ;
3
3
import * as config from '../../cypress.config' ;
4
4
5
- export default ( resolve ) => {
5
+ export default ( cb ) => {
6
6
if ( CLIOptions . hasFlag ( 'run' ) ) {
7
7
cypress
8
8
. run ( config )
9
- . then ( results => ( results . totalFailed === 0 ? resolve ( ) : resolve ( 'Run failed!' ) ) )
10
- . catch ( resolve ) ;
9
+ . then ( results => ( results . totalFailed === 0 ? cb ( ) : cb ( 'Run failed!' ) ) )
10
+ . catch ( cb ) ;
11
11
} else {
12
12
cypress . open ( config ) ;
13
13
}
You can’t perform that action at this time.
0 commit comments