Path: blob/main/extensions/copilot/src/util/node/test/glob.spec.ts
13401 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import assert from 'assert';6import { suite, test } from 'vitest';7import { isMatch } from '../../common/glob';8import { URI } from '../../vs/base/common/uri';910suite('isMatch', () => {11test('issue #3377: should match URIs on Windows', () => {12const uri = URI.file('/Users/someone/Projects/proj01/base/test/common/map.test.ts');13const glob = '**/{map.test.ts,map.spec.ts}';14const result = isMatch(uri, glob);15assert.strictEqual(result, true);16});17});181920