mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Fix findFiles integration tests after PR even more
This commit is contained in:
@@ -551,8 +551,8 @@ suite('vscode API - workspace', () => {
|
||||
});
|
||||
|
||||
test('findFiles', () => {
|
||||
return vscode.workspace.findFiles('**/*.png').then((res) => {
|
||||
assert.equal(res.length, 3);
|
||||
return vscode.workspace.findFiles('**/image.png').then((res) => {
|
||||
assert.equal(res.length, 2);
|
||||
assert.equal(basename(vscode.workspace.asRelativePath(res[0])), 'image.png');
|
||||
});
|
||||
});
|
||||
@@ -572,15 +572,15 @@ suite('vscode API - workspace', () => {
|
||||
});
|
||||
|
||||
test('findFiles - exclude', () => {
|
||||
return vscode.workspace.findFiles('**/*.png').then((res) => {
|
||||
assert.equal(res.length, 3);
|
||||
return vscode.workspace.findFiles('**/image.png').then((res) => {
|
||||
assert.equal(res.length, 2);
|
||||
assert.equal(basename(vscode.workspace.asRelativePath(res[0])), 'image.png');
|
||||
});
|
||||
});
|
||||
|
||||
test('findFiles, exclude', () => {
|
||||
return vscode.workspace.findFiles('**/*.png', '**/sub/**').then((res) => {
|
||||
assert.equal(res.length, 2);
|
||||
return vscode.workspace.findFiles('**/image.png', '**/sub/**').then((res) => {
|
||||
assert.equal(res.length, 1);
|
||||
assert.equal(basename(vscode.workspace.asRelativePath(res[0])), 'image.png');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user