@@ -26,7 +26,7 @@ describe('generating package.json', function() {
2626 describe ( 'with FastBoot builds' , function ( ) {
2727
2828 before ( function ( ) {
29- return app . run ( 'ember' , 'build' ) ;
29+ return app . runEmberCommand ( 'build' ) ;
3030 } ) ;
3131
3232 it ( 'builds a package.json' , function ( ) {
@@ -101,7 +101,7 @@ describe('generating package.json', function() {
101101 describe ( 'with production FastBoot builds' , function ( ) {
102102
103103 before ( function ( ) {
104- return app . run ( 'ember' , ' build', '--environment' , ' production') ;
104+ return app . runEmberCommand ( ' build', '--environment= production' ) ;
105105 } ) ;
106106
107107 // https://github.com/tildeio/ember-cli-fastboot/issues/102
@@ -133,7 +133,7 @@ describe('generating package.json', function() {
133133 before ( function ( ) {
134134 return customApp . create ( 'customized-fingerprinting' )
135135 . then ( function ( ) {
136- return customApp . run ( 'ember' , ' build', '--environment' , ' production') ;
136+ return customApp . runEmberCommand ( ' build', '--environment= production' ) ;
137137 } ) ;
138138 } ) ;
139139
@@ -155,7 +155,6 @@ describe('generating package.json', function() {
155155 expect ( p ( file ) ) . to . be . a . file ( ) ;
156156 } ) ;
157157 } ) ;
158-
159158 } ) ;
160159
161160 describe ( 'with customized outputPaths options' , function ( ) {
@@ -165,7 +164,7 @@ describe('generating package.json', function() {
165164 before ( function ( ) {
166165 return customApp . create ( 'customized-outputpaths' )
167166 . then ( function ( ) {
168- return customApp . run ( 'ember' , 'build' ) ;
167+ return customApp . runEmberCommand ( 'build' ) ;
169168 } ) ;
170169 } ) ;
171170
@@ -185,7 +184,6 @@ describe('generating package.json', function() {
185184 expect ( p ( file ) ) . to . be . a . file ( ) ;
186185 } ) ;
187186 } ) ;
188-
189187 } ) ;
190188
191189 describe ( 'with custom htmlFile' , function ( ) {
@@ -196,7 +194,7 @@ describe('generating package.json', function() {
196194 before ( function ( ) {
197195 return customApp . create ( 'custom-html-file' )
198196 . then ( function ( ) {
199- return customApp . run ( 'ember' , ' build', '--environment' , ' production') ;
197+ return customApp . runEmberCommand ( ' build', '--environment= production' ) ;
200198 } ) ;
201199 } ) ;
202200
@@ -211,12 +209,11 @@ describe('generating package.json', function() {
211209 expect ( manifest . htmlFile ) . to . equal ( 'custom-index.html' ) ;
212210 expect ( p ( manifest . htmlFile ) ) . to . be . a . file ( ) ;
213211 } ) ;
214-
215212 } ) ;
216213} ) ;
217214
218215function addFastBootDeps ( app ) {
219- return app . editPackageJSON ( function ( pkg ) {
216+ return app . editPackageJSON ( pkg => {
220217 pkg [ 'devDependencies' ] [ 'fake-addon' ] = '*' ;
221218 pkg [ 'devDependencies' ] [ 'fake-addon-2' ] = '*' ;
222219 pkg [ 'fastbootDependencies' ] = [ "rsvp" ] ;
0 commit comments