From 9e85220350a9ac4ebde74d77778fd9e5c3966c05 Mon Sep 17 00:00:00 2001 From: sbenmoussati <51402489+sbenmoussati@users.noreply.github.com> Date: Wed, 9 Jun 2021 12:18:27 +0200 Subject: [PATCH] UT fix --- spec/chromeFlags.spec.ts | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/spec/chromeFlags.spec.ts b/spec/chromeFlags.spec.ts index f8d24641..c1ca61cc 100644 --- a/spec/chromeFlags.spec.ts +++ b/spec/chromeFlags.spec.ts @@ -60,8 +60,12 @@ describe('chrome flags', () => { it('should call `setChromeFlags` correctly', () => { const spy = jest.spyOn(app.commandLine, 'appendSwitch'); setChromeFlags(); - expect(spy).nthCalledWith(1, 'auth-negotiate-delegate-whitelist', 'url'); - expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'whitelist'); + expect(spy).nthCalledWith( + 1, + 'auth-negotiate-delegate-whitelist', + 'whitelist', + ); + expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'url'); expect(spy).nthCalledWith(3, 'disable-background-timer-throttling', 'true'); expect(spy).nthCalledWith(4, 'disable-d3d11', true); expect(spy).nthCalledWith(5, 'disable-gpu', true); @@ -79,8 +83,12 @@ describe('chrome flags', () => { }); const spy = jest.spyOn(app.commandLine, 'appendSwitch'); setChromeFlags(); - expect(spy).nthCalledWith(1, 'auth-negotiate-delegate-whitelist', 'url'); - expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'whitelist'); + expect(spy).nthCalledWith( + 1, + 'auth-negotiate-delegate-whitelist', + 'whitelist', + ); + expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'url'); expect(spy).nthCalledWith(3, 'disable-background-timer-throttling', 'true'); expect(spy).not.nthCalledWith(4); }); @@ -166,8 +174,12 @@ describe('chrome flags', () => { it('should call `setChromeFlags` correctly', () => { const spy = jest.spyOn(app.commandLine, 'appendSwitch'); setChromeFlags(); - expect(spy).nthCalledWith(1, 'auth-negotiate-delegate-whitelist', 'url'); - expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'whitelist'); + expect(spy).nthCalledWith( + 1, + 'auth-negotiate-delegate-whitelist', + 'whitelist', + ); + expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'url'); expect(spy).nthCalledWith( 3, 'disable-background-timer-throttling',