88import { ng } from '../../utils/process' ;
99import { updateJsonFile } from '../../utils/project' ;
1010import { expectToFail } from '../../utils/utils' ;
11- import { getGlobalVariable } from '../../utils/env' ;
1211
1312
1413// const temp = require('temp');
@@ -17,7 +16,6 @@ import {getGlobalVariable} from '../../utils/env';
1716// tslint:disable:max-line-length
1817export default function ( ) {
1918 // Disable parts of it in webpack tests.
20- const ejected = getGlobalVariable ( 'argv' ) . eject ;
2119
2220 // TODO: update test
2321 return ;
@@ -110,7 +108,7 @@ export default function () {
110108 // .gitkeep shouldn't be copied.
111109 . then ( ( ) => expectToFail ( ( ) => expectFileToExist ( 'dist/assets/.gitkeep' ) ) )
112110 // Update app to test assets are present.
113- . then ( _ => ! ejected && writeMultipleFiles ( {
111+ . then ( _ => writeMultipleFiles ( {
114112 'src/app/app.module.ts' : `
115113 import { BrowserModule } from '@angular/platform-browser';
116114 import { NgModule } from '@angular/core';
@@ -191,6 +189,6 @@ export default function () {
191189 });
192190 });` ,
193191 } ) )
194- . then ( ( ) => ! ejected && ng ( 'test' , '--watch=false' ) )
195- . then ( ( ) => ! ejected && ng ( 'e2e' , 'test-project-e2e' ) ) ;
192+ . then ( ( ) => ng ( 'test' , '--watch=false' ) )
193+ . then ( ( ) => ng ( 'e2e' , 'test-project-e2e' ) ) ;
196194}
0 commit comments