mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-02 21:55:33 +01:00
fix path test that reflects on its own name
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user