Skip to content

Commit

Permalink
fix biome lint . complaints (lint/performance/noDelete)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Nov 27, 2023
1 parent c02c0da commit 2331d5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/unit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ test('correct paths with only XDG_*_HOME set', (t) => {
data: 'XDG_DATA_HOME',
state: 'XDG_STATE_HOME',
};
delete process.env.XDG_CONFIG_DIRS;
delete process.env.XDG_DATA_DIRS;
process.env.XDG_CONFIG_DIRS = ''; // or `delete process.env.XDG_CONFIG_DIRS` ## note: `process.env.X = void 0` sets X to the *string* value *'undefined'*
process.env.XDG_DATA_DIRS = ''; // or `delete process.env.XDG_DATA_DIRS` ## note: `process.env.X = void 0` sets X to the *string* value *'undefined'*
Object.keys(envVars).forEach((key) => {
const env = envVars[key];
process.env[env] = path.join('.', env);
Expand Down Expand Up @@ -384,8 +384,8 @@ test('correct "isolated" paths with only XDG_*_HOME set', (t) => {
data: 'XDG_DATA_HOME',
state: 'XDG_STATE_HOME',
};
delete process.env.XDG_CONFIG_DIRS;
delete process.env.XDG_DATA_DIRS;
process.env.XDG_CONFIG_DIRS = ''; // or `delete process.env.XDG_CONFIG_DIRS` ## note: `process.env.X = void 0` sets X to the *string* value *'undefined'*
process.env.XDG_DATA_DIRS = ''; // or `delete process.env.XDG_DATA_DIRS` ## note: `process.env.X = void 0` sets X to the *string* value *'undefined'*
for (const key of Object.keys(envVars)) {
const env = envVars[key];
process.env[env] = path.join('.', env);
Expand Down Expand Up @@ -445,8 +445,8 @@ test('correct non-"isolated" paths with only XDG_*_HOME set', (t) => {
data: 'XDG_DATA_HOME',
state: 'XDG_STATE_HOME',
};
delete process.env.XDG_CONFIG_DIRS;
delete process.env.XDG_DATA_DIRS;
process.env.XDG_CONFIG_DIRS = ''; // or `delete process.env.XDG_CONFIG_DIRS` ## note: `process.env.X = void 0` sets X to the *string* value *'undefined'*
process.env.XDG_DATA_DIRS = ''; // or `delete process.env.XDG_DATA_DIRS` ## note: `process.env.X = void 0` sets X to the *string* value *'undefined'*
Object.keys(envVars).forEach((key) => {
const env = envVars[key];
process.env[env] = path.join('.', env);
Expand Down

0 comments on commit 2331d5d

Please sign in to comment.