From 77e97e29d04473fcbe2bf31177c15372b39c8d72 Mon Sep 17 00:00:00 2001 From: Aditya Chopra Date: Sun, 23 Nov 2025 16:19:18 +0530 Subject: [PATCH] test: add missing test for empty string in path.posix.normalize() --- test/parallel/test-path-normalize.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/parallel/test-path-normalize.js b/test/parallel/test-path-normalize.js index 8b537676dbf45d..f922acfcda9697 100644 --- a/test/parallel/test-path-normalize.js +++ b/test/parallel/test-path-normalize.js @@ -98,3 +98,6 @@ assert.strictEqual( '../../../../baz' ); assert.strictEqual(path.posix.normalize('foo/bar\\baz'), 'foo/bar\\baz'); + +// Missing test for empty string +assert.strictEqual(path.posix.normalize(''), '.');