1 | ;
|
2 |
|
3 | var fs = require('fs');
|
4 | var path = require('path');
|
5 |
|
6 | var testDir = __dirname;
|
7 |
|
8 | var directories = [
|
9 | testDir + '/dialects'
|
10 | ];
|
11 |
|
12 | directories.forEach(function (d) {
|
13 | var files = fs.readdirSync(d);
|
14 | /*jshint boss: true */
|
15 | for(var i = 0, file; file = files[i]; i++) {
|
16 | var filePath = path.join(d, file);
|
17 | if (path.extname(file) === '.js') {
|
18 | require(filePath);
|
19 | }
|
20 | }
|
21 | });
|