Commit 16dad7c 1 parent 2ae25c9 commit 16dad7c Copy full SHA for 16dad7c
File tree 8 files changed +29
-10
lines changed
8 files changed +29
-10
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ export default function () {
132
132
});
133
133
});` ,
134
134
} ) )
135
- // .then(() => !ejected && ng('test', '--single-run'))
136
- // .then(_ => killAllProcesses(), (err) => { killAllProcesses(); throw err; })
137
- . then ( ( ) => ng ( 'e2e' ) ) ;
135
+ . then ( ( ) => ! ejected && ng ( 'test' , '--single-run' ) )
136
+ . then ( ( ) => ! ejected && ng ( 'e2e' ) ) ;
138
137
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default function() {
12
12
. then ( ( ) => ngServe ( ) )
13
13
. then ( ( ) => request ( 'http://localhost:4201/' ) )
14
14
. then ( body => {
15
- if ( ! body . match ( / < a p p - r o o t > L o a d i n g ... < \/ a p p - r o o t > / ) ) {
15
+ if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
16
16
throw new Error ( 'Response does not match expected value.' ) ;
17
17
}
18
18
} )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default function () {
11
11
. then ( ( ) => ngServe ( ) )
12
12
. then ( ( ) => request ( 'http://localhost:4200/' ) )
13
13
. then ( body => {
14
- if ( ! body . match ( / < a p p - r o o t > L o a d i n g ... < \/ a p p - r o o t > / ) ) {
14
+ if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
15
15
throw new Error ( 'Response does not match expected value.' ) ;
16
16
}
17
17
} )
@@ -25,7 +25,7 @@ export default function () {
25
25
. then ( ( ) => ngServe ( ) )
26
26
. then ( ( ) => request ( 'http://localhost:4200/' ) )
27
27
. then ( body => {
28
- if ( ! body . match ( / < a p p - r o o t > L o a d i n g ... < \/ a p p - r o o t > / ) ) {
28
+ if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
29
29
throw new Error ( 'Response does not match expected value.' ) ;
30
30
}
31
31
} )
Original file line number Diff line number Diff line change @@ -36,6 +36,26 @@ export default function () {
36
36
37
37
return Promise . resolve ( )
38
38
. then ( _ => writeMultipleFiles ( {
39
+ 'src/app/app.module.ts' : `
40
+ import { BrowserModule } from '@angular/platform-browser';
41
+ import { NgModule } from '@angular/core';
42
+ import { FormsModule } from '@angular/forms';
43
+ import { HttpModule } from '@angular/http';
44
+ import { AppComponent } from './app.component';
45
+ @NgModule({
46
+ declarations: [
47
+ AppComponent
48
+ ],
49
+ imports: [
50
+ BrowserModule,
51
+ FormsModule,
52
+ HttpModule
53
+ ],
54
+ providers: [],
55
+ bootstrap: [AppComponent]
56
+ })
57
+ export class AppModule { }
58
+ ` ,
39
59
// e2e test that just opens the page and waits, so that the app runs.
40
60
'./e2e/app.e2e-spec.ts' : `
41
61
import { browser } from 'protractor';
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export default function() {
12
12
. then ( ( ) => ngServe ( ) )
13
13
. then ( ( ) => request ( 'https://localhost:4200/' ) )
14
14
. then ( body => {
15
- if ( ! body . match ( / < a p p - r o o t > L o a d i n g ... < \/ a p p - r o o t > / ) ) {
15
+ if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
16
16
throw new Error ( 'Response does not match expected value.' ) ;
17
17
}
18
18
} )
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default function() {
8
8
. then ( ( ) => ngServe ( '--ssl' , 'true' ) )
9
9
. then ( ( ) => request ( 'https://localhost:4200/' ) )
10
10
. then ( body => {
11
- if ( ! body . match ( / < a p p - r o o t > L o a d i n g ... < \/ a p p - r o o t > / ) ) {
11
+ if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
12
12
throw new Error ( 'Response does not match expected value.' ) ;
13
13
}
14
14
} )
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export default function() {
17
17
. then ( ( ) => ngServe ( ) )
18
18
. then ( ( ) => request ( 'https://localhost:4200/' ) )
19
19
. then ( body => {
20
- if ( ! body . match ( / < a p p - r o o t > L o a d i n g ... < \/ a p p - r o o t > / ) ) {
20
+ if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
21
21
throw new Error ( 'Response does not match expected value.' ) ;
22
22
}
23
23
} )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export default function() {
13
13
) )
14
14
. then ( ( ) => request ( 'https://localhost:4200/' ) )
15
15
. then ( body => {
16
- if ( ! body . match ( / < a p p - r o o t > L o a d i n g ... < \/ a p p - r o o t > / ) ) {
16
+ if ( ! body . match ( / < a p p - r o o t > < \/ a p p - r o o t > / ) ) {
17
17
throw new Error ( 'Response does not match expected value.' ) ;
18
18
}
19
19
} )
You can’t perform that action at this time.
0 commit comments