summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/parallel/test-path-parse-format.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/node_compat/test/parallel/test-path-parse-format.js')
-rw-r--r--tests/node_compat/test/parallel/test-path-parse-format.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/node_compat/test/parallel/test-path-parse-format.js b/tests/node_compat/test/parallel/test-path-parse-format.js
index 5b31751f2..7f4682899 100644
--- a/tests/node_compat/test/parallel/test-path-parse-format.js
+++ b/tests/node_compat/test/parallel/test-path-parse-format.js
@@ -231,3 +231,7 @@ function checkFormat(path, testCases) {
});
});
}
+
+// See https://github.com/nodejs/node/issues/44343
+assert.strictEqual(path.format({ name: 'x', ext: 'png' }), 'x.png');
+assert.strictEqual(path.format({ name: 'x', ext: '.png' }), 'x.png');