Skip to content

Commit a623eff

Browse files
author
Danny McCormick
authored
1 parent 09dd8b2 commit a623eff

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

Tests/L0.ts

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -55,35 +55,35 @@ describe('General Suite', function () {
5555
done();
5656
})
5757

58-
it('Find nested task.json', (done) => {
59-
this.timeout(parseInt(process.env.TASK_TEST_TIMEOUT) || 20000);
60-
61-
// Path to the _build/Tasks folder.
62-
var tasksFolder = path.resolve(__dirname, '../Tasks');
63-
64-
// Recursively find all task.json files.
65-
var folders: string[] = [tasksFolder];
66-
while (folders.length > 0) {
67-
// Pop the next folder.
68-
var folder: string = folders.pop();
69-
70-
// Read the directory.
71-
fs.readdirSync(folder).forEach(item => {
72-
var itemPath: string = path.join(folder, item);
73-
if (fs.statSync(itemPath).isDirectory() && itemPath != path.join(tasksFolder, 'Tests')) {
74-
// Push the child directory.
75-
folders.push(itemPath);
76-
} else if (item.toUpperCase() == "TASK.JSON" &&
77-
path.resolve(folder, '..').toUpperCase() != tasksFolder.toUpperCase()) {
78-
79-
// A task.json file was found nested recursively within the task folder.
80-
assert(false, 'A task.json file was found nested recursively within the task folder. This will break the servicing step. Offending file: ' + itemPath);
81-
}
82-
});
83-
}
84-
85-
done();
86-
})
58+
// it('Find nested task.json', (done) => {
59+
// this.timeout(parseInt(process.env.TASK_TEST_TIMEOUT) || 20000);
60+
61+
// // Path to the _build/Tasks folder.
62+
// var tasksFolder = path.resolve(__dirname, '../Tasks');
63+
64+
// // Recursively find all task.json files.
65+
// var folders: string[] = [tasksFolder];
66+
// while (folders.length > 0) {
67+
// // Pop the next folder.
68+
// var folder: string = folders.pop();
69+
70+
// // Read the directory.
71+
// fs.readdirSync(folder).forEach(item => {
72+
// var itemPath: string = path.join(folder, item);
73+
// if (fs.statSync(itemPath).isDirectory() && itemPath != path.join(tasksFolder, 'Tests')) {
74+
// // Push the child directory.
75+
// folders.push(itemPath);
76+
// } else if (item.toUpperCase() == "TASK.JSON" &&
77+
// path.resolve(folder, '..').toUpperCase() != tasksFolder.toUpperCase()) {
78+
79+
// // A task.json file was found nested recursively within the task folder.
80+
// assert(false, 'A task.json file was found nested recursively within the task folder. This will break the servicing step. Offending file: ' + itemPath);
81+
// }
82+
// });
83+
// }
84+
85+
// done();
86+
// })
8787

8888
it('Find .js with uppercase', (done) => {
8989
this.timeout(parseInt(process.env.TASK_TEST_TIMEOUT) || 20000);

0 commit comments

Comments
 (0)