From 767b3209936bac0644b7dc9be4838a3604e2f1d4 Mon Sep 17 00:00:00 2001 From: Jan Hannemann Date: Thu, 19 Nov 2020 12:00:05 -0800 Subject: [PATCH] unit test --- __tests__/creator-spec.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/__tests__/creator-spec.ts b/__tests__/creator-spec.ts index 402bede..9fe2b4d 100644 --- a/__tests__/creator-spec.ts +++ b/__tests__/creator-spec.ts @@ -515,9 +515,23 @@ describe('auto-launch', () => { }); testIncludes('RegistryRunKey', ''); testIncludes('RegistryRunKey component', ''); regexTestIncludes('AutoLaunch feature', //); + + test('MSICreator includes Auto-Updater feature with arguments', async () => { + const msiCreator = new MSICreator({ + ...defaultOptions, + features: {autoUpdate: false, autoLaunch: {enabled: true, arguments: ['arg1', 'arg2'] } }}); + const { wxsFile } = await msiCreator.create(); + wxsContent = await fs.readFile(wxsFile, 'utf-8'); + console.log(wxsContent); + expect(wxsFile).toBeTruthy(); + }); + + testIncludes('RegistryRunKey', ''); + }); describe('perUser install by default', () => {