mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
UT fix
This commit is contained in:
parent
0817179473
commit
9e85220350
@ -60,8 +60,12 @@ describe('chrome flags', () => {
|
|||||||
it('should call `setChromeFlags` correctly', () => {
|
it('should call `setChromeFlags` correctly', () => {
|
||||||
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
||||||
setChromeFlags();
|
setChromeFlags();
|
||||||
expect(spy).nthCalledWith(1, 'auth-negotiate-delegate-whitelist', 'url');
|
expect(spy).nthCalledWith(
|
||||||
expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'whitelist');
|
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(3, 'disable-background-timer-throttling', 'true');
|
||||||
expect(spy).nthCalledWith(4, 'disable-d3d11', true);
|
expect(spy).nthCalledWith(4, 'disable-d3d11', true);
|
||||||
expect(spy).nthCalledWith(5, 'disable-gpu', true);
|
expect(spy).nthCalledWith(5, 'disable-gpu', true);
|
||||||
@ -79,8 +83,12 @@ describe('chrome flags', () => {
|
|||||||
});
|
});
|
||||||
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
||||||
setChromeFlags();
|
setChromeFlags();
|
||||||
expect(spy).nthCalledWith(1, 'auth-negotiate-delegate-whitelist', 'url');
|
expect(spy).nthCalledWith(
|
||||||
expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'whitelist');
|
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(3, 'disable-background-timer-throttling', 'true');
|
||||||
expect(spy).not.nthCalledWith(4);
|
expect(spy).not.nthCalledWith(4);
|
||||||
});
|
});
|
||||||
@ -166,8 +174,12 @@ describe('chrome flags', () => {
|
|||||||
it('should call `setChromeFlags` correctly', () => {
|
it('should call `setChromeFlags` correctly', () => {
|
||||||
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
const spy = jest.spyOn(app.commandLine, 'appendSwitch');
|
||||||
setChromeFlags();
|
setChromeFlags();
|
||||||
expect(spy).nthCalledWith(1, 'auth-negotiate-delegate-whitelist', 'url');
|
expect(spy).nthCalledWith(
|
||||||
expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'whitelist');
|
1,
|
||||||
|
'auth-negotiate-delegate-whitelist',
|
||||||
|
'whitelist',
|
||||||
|
);
|
||||||
|
expect(spy).nthCalledWith(2, 'auth-server-whitelist', 'url');
|
||||||
expect(spy).nthCalledWith(
|
expect(spy).nthCalledWith(
|
||||||
3,
|
3,
|
||||||
'disable-background-timer-throttling',
|
'disable-background-timer-throttling',
|
||||||
|
Loading…
Reference in New Issue
Block a user