From fd6a693f7ffc4909f165a5b939297a867e826b7f Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 21 Nov 2023 15:29:38 +0100 Subject: [PATCH] fix: changed order of commands --- src/app.controller.spec.ts | 2 +- src/app.controller.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.controller.spec.ts b/src/app.controller.spec.ts index 5473ebb..e468a20 100644 --- a/src/app.controller.spec.ts +++ b/src/app.controller.spec.ts @@ -68,7 +68,7 @@ describe('AppController', () => { await firstValueFrom(controller.deployApp(delpoymentData)); expect(mockWs.write).toHaveBeenCalledWith( - 'test-name test@mail.com test-username y n test-base', + 'test-name test@mail.com test-username test-base y n', ); expect(mockWs.close).toHaveBeenCalled(); }); diff --git a/src/app.controller.ts b/src/app.controller.ts index 273a1b1..cb9c35a 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -52,9 +52,9 @@ export class AppController { const args = `${deploymentInfo.name} ${deploymentInfo.email} ${ deploymentInfo.username - } ${deploymentInfo.backend ? 'y' : 'n'} ${ + } ${deploymentInfo.base} ${deploymentInfo.backend ? 'y' : 'n'} ${ deploymentInfo.monitor ? 'y' : 'n' - } ${deploymentInfo.base}`; + }`; console.log('args', args); const ws = fs.createWriteStream('dist/assets/arg-pipe'); ws.write(args);