Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/util/node/test/glob.spec.ts
13401 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import assert from 'assert';
7
import { suite, test } from 'vitest';
8
import { isMatch } from '../../common/glob';
9
import { URI } from '../../vs/base/common/uri';
10
11
suite('isMatch', () => {
12
test('issue #3377: should match URIs on Windows', () => {
13
const uri = URI.file('/Users/someone/Projects/proj01/base/test/common/map.test.ts');
14
const glob = '**/{map.test.ts,map.spec.ts}';
15
const result = isMatch(uri, glob);
16
assert.strictEqual(result, true);
17
});
18
});
19
20