fix path test that reflects on its own name

This commit is contained in:
Johannes Rieken
2020-02-05 09:53:48 +01:00
parent 1355463c76
commit 992c4daa4f
+2 -2
View File
@@ -176,8 +176,8 @@ suite('Paths (Node Implementation)', () => {
});
test('dirname', () => {
assert.strictEqual(path.dirname(path.normalize(__filename)).substr(-11),
isWindows ? 'test\\common' : 'test/common');
assert.strictEqual(path.dirname(path.normalize(__filename)).substr(-9),
isWindows ? 'test\\node' : 'test/node');
assert.strictEqual(path.posix.dirname('/a/b/'), '/a');
assert.strictEqual(path.posix.dirname('/a/b'), '/a');