Skip to content

Commit 45967cd

Browse files
author
Benjamin Pasero
committed
fix tests on windows
1 parent 710e7d6 commit 45967cd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/vs/base/test/common/resources.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import * as assert from 'assert';
88
import URI from 'vs/base/common/uri';
99
import { distinctParents, dirname } from 'vs/base/common/resources';
10+
import { normalize } from 'vs/base/common/paths';
1011

1112
suite('Resources', () => {
1213

@@ -44,7 +45,7 @@ suite('Resources', () => {
4445
test('dirname', (done) => {
4546
const f = URI.file('/some/file/test.txt');
4647
const d = dirname(f);
47-
assert.equal(d.fsPath, '/some/file');
48+
assert.equal(d.fsPath, normalize('/some/file', true));
4849

4950
// does not explode (https://github.com/Microsoft/vscode/issues/41987)
5051
URI.from({ scheme: 'file', authority: '/users/someone/portal.h' });

0 commit comments

Comments
 (0)