提交 43f2710f 编写于 作者: R Rob Lourens

Reenable disabled test - fix #73604

上级 f794ad0a
......@@ -77,7 +77,7 @@ export class FileWalker {
this.errors = [];
if (this.filePattern) {
this.normalizedFilePatternLowercase = prepareQuery(this.filePattern).value;
this.normalizedFilePatternLowercase = prepareQuery(this.filePattern).lowercase;
}
this.globalExcludePattern = config.excludePattern && glob.parse(config.excludePattern);
......
......@@ -290,25 +290,25 @@ suite('FileSearchEngine', () => {
});
});
// test('Files: NPE (CamelCase)', function (done: () => void) {
// this.timeout(testTimeout);
// const engine = new FileSearchEngine({
// type: QueryType.File,
// folderQueries: ROOT_FOLDER_QUERY,
// filePattern: 'NullPE'
// });
// let count = 0;
// engine.search((result) => {
// if (result) {
// count++;
// }
// }, () => { }, (error) => {
// assert.ok(!error);
// assert.equal(count, 1);
// done();
// });
// });
test('Files: NPE (CamelCase)', function (done: () => void) {
this.timeout(testTimeout);
const engine = new FileSearchEngine({
type: QueryType.File,
folderQueries: ROOT_FOLDER_QUERY,
filePattern: 'NullPE'
});
let count = 0;
engine.search((result) => {
if (result) {
count++;
}
}, () => { }, (error) => {
assert.ok(!error);
assert.equal(count, 1);
done();
});
});
test('Files: *.*', function (done: () => void) {
this.timeout(testTimeout);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册