We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 710e7d6 commit 45967cdCopy full SHA for 45967cd
1 file changed
src/vs/base/test/common/resources.test.ts
@@ -7,6 +7,7 @@
7
import * as assert from 'assert';
8
import URI from 'vs/base/common/uri';
9
import { distinctParents, dirname } from 'vs/base/common/resources';
10
+import { normalize } from 'vs/base/common/paths';
11
12
suite('Resources', () => {
13
@@ -44,7 +45,7 @@ suite('Resources', () => {
44
45
test('dirname', (done) => {
46
const f = URI.file('/some/file/test.txt');
47
const d = dirname(f);
- assert.equal(d.fsPath, '/some/file');
48
+ assert.equal(d.fsPath, normalize('/some/file', true));
49
50
// does not explode (https://github.com/Microsoft/vscode/issues/41987)
51
URI.from({ scheme: 'file', authority: '/users/someone/portal.h' });
0 commit comments