Skip to content

Commit 0b4ac77

Browse files
test: use deepStrictEqual
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 646434b commit 0b4ac77

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

test/parallel/test-dotenv-edge-cases.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,11 @@ describe('.env supports edge cases', () => {
208208
209209
const input = fs.readFileSync(${JSON.stringify(invalidEnvFilePath)}, 'utf8');
210210
const result = parseEnv(input);
211-
assert.strictEqual(Object.keys(result).length, 3);
212-
assert.strictEqual(result.baz, 'whatever');
213-
assert.strictEqual(result.VALID_AFTER_INVALID, 'test');
214-
assert.strictEqual(result.ANOTHER_VALID, 'value');
215-
assert.strictEqual(result.foo, undefined);
216-
assert.strictEqual(result.bar, undefined);
217-
assert.strictEqual(result.multiple_invalid, undefined);
218-
assert.strictEqual(result.lines_without_equals, undefined);
211+
assert.deepStrictEqual(util.parseEnv(input), {
212+
baz: 'whatever',
213+
VALID_AFTER_INVALID: 'test',
214+
ANOTHER_VALID: 'value',
215+
});
219216
`.trim();
220217
const child = await common.spawnPromisified(
221218
process.execPath,

0 commit comments

Comments
 (0)