mirror of https://github.com/garrytan/gstack.git
fix(test): make chromium profile fallback path portable
This commit is contained in:
parent
11de390be1
commit
7501a6e133
|
|
@ -367,7 +367,7 @@ describe('resolveChromiumProfile', () => {
|
|||
delete process.env.CHROMIUM_PROFILE;
|
||||
process.env.GSTACK_HOME = '/tmp/fallback-gstack';
|
||||
try {
|
||||
expect(resolveChromiumProfile()).toBe('/tmp/fallback-gstack/chromium-profile');
|
||||
expect(resolveChromiumProfile()).toBe(path.join('/tmp/fallback-gstack', 'chromium-profile'));
|
||||
} finally {
|
||||
if (origEnv !== undefined) process.env.CHROMIUM_PROFILE = origEnv;
|
||||
if (origHome === undefined) delete process.env.GSTACK_HOME;
|
||||
|
|
|
|||
Loading…
Reference in New Issue