Skip to content

Commit f8d5a9c

Browse files
Fix unit tests
Co-authored-by: Saikrishna321 <[email protected]>
1 parent 26a67d7 commit f8d5a9c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/unit/utils-env.spec.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import {describe, expect, it} from 'vitest';
33
import {interpolateEnvironmentVariables} from '../../app/common/renderer/utils/env-utils';
44

55
describe('interpolateEnvironmentVariables', function () {
6-
const envVars = [
7-
{key: 'HOME', value: '/home/user'},
8-
{key: 'PATH', value: '/usr/bin'},
9-
{key: 'APP_ENV', value: 'test'},
10-
];
6+
const envVars = new Map([
7+
['HOME', '/home/user'],
8+
['PATH', '/usr/bin'],
9+
['APP_ENV', 'test'],
10+
]);
1111

1212
it('should interpolate environment variables in strings', function () {
1313
const input = 'My home is ${HOME} and path is ${PATH}';

0 commit comments

Comments
 (0)