@@ -162,6 +162,19 @@ describe('Virtualbox installer', function() {
162162 installer . ipcRenderer = { on : function ( ) { } } ;
163163 } ) ;
164164
165+
166+ it ( 'should set progress to "Installing"' , function ( ) {
167+ sandbox . stub ( Installer . prototype , 'exec' ) . resolves ( ) ;
168+ sandbox . stub ( installer , 'configure' ) . resolves ( ) ;
169+ sandbox . stub ( Platform , 'addToUserPath' ) . resolves ( ) ;
170+
171+ return installer . installAfterRequirements ( fakeProgress , success , failure )
172+ . then ( ( ) => {
173+ expect ( fakeProgress . setStatus ) . to . have . been . calledOnce ;
174+ expect ( fakeProgress . setStatus ) . to . have . been . calledWith ( 'Installing' ) ;
175+ } ) ;
176+ } ) ;
177+
165178 it ( 'should import the certificate from the executable' , function ( ) {
166179 sandbox . stub ( child_process , 'execFile' ) . yields ( 'done' ) ;
167180
@@ -214,13 +227,6 @@ describe('Virtualbox installer', function() {
214227 reject = ( argument ) => { Promise . reject ( argument ) ; } ;
215228 } ) ;
216229
217- it ( 'should set progress to "Installing"' , function ( ) {
218- installer . installMsi ( helper , resolve , reject ) ;
219-
220- expect ( fakeProgress . setStatus ) . to . have . been . calledOnce ;
221- expect ( fakeProgress . setStatus ) . to . have . been . calledWith ( 'Installing' ) ;
222- } ) ;
223-
224230 it ( 'should execute the msi installer' , function ( ) {
225231 let spy = sandbox . spy ( Installer . prototype , 'exec' ) ;
226232
0 commit comments