@@ -188,34 +188,34 @@ describe('Connect orchestrator tests', () => {
188188 } ) ;
189189 } ) ;
190190 } ) ;
191- //
192- // it('Can handle a new action session (apply)', async () => {
193- // const reporter = new MockReporter();
194- // await fakeLogin();
195- // await mkdir(os.tmpdir(), { recursive: true });
196- //
197- // await new Promise<void>((done) => {
198- // startSession(reporter, async (connectionCode, clientId, server, socket, sessionId) => {
199- // const commandResponse = await fetch(`http://localhost:${config.connectServerPort}/apply/${sessionId}/start`, {
200- // method: 'POST',
201- // headers: { 'Authorization': `${connectionCode}`, 'Content-Type': 'application/json' },
202- // body: JSON.stringify({
203- // config: [
204- // {
205- // type: 'homebrew',
206- // formulae: ['zsh']
207- // }
208- // ]
209- // })
210- // });
211- //
212- // expect(commandResponse.ok).to.be.true;
213- //
214- // server.close();
215- // done();
216- // });
217- // });
218- // });
191+
192+ it ( 'Can handle a new action session (apply)' , async ( ) => {
193+ const reporter = new MockReporter ( ) ;
194+ await fakeLogin ( ) ;
195+ await mkdir ( os . tmpdir ( ) , { recursive : true } ) ;
196+
197+ await new Promise < void > ( ( done ) => {
198+ startSession ( reporter , async ( connectionCode , clientId , server , socket , sessionId ) => {
199+ const commandResponse = await fetch ( `http://localhost:${ config . connectServerPort } /apply/${ sessionId } /start` , {
200+ method : 'POST' ,
201+ headers : { 'Authorization' : `${ connectionCode } ` , 'Content-Type' : 'application/json' } ,
202+ body : JSON . stringify ( {
203+ config : [
204+ {
205+ type : 'homebrew' ,
206+ formulae : [ 'zsh' ]
207+ }
208+ ]
209+ } )
210+ } ) ;
211+
212+ expect ( commandResponse . ok ) . to . be . true ;
213+
214+ server . close ( ) ;
215+ done ( ) ;
216+ } ) ;
217+ } ) ;
218+ } ) ;
219219 //
220220 // it('Can handle a new action session (import specific)', async () => {
221221 // const reporter = new MockReporter();
0 commit comments