UNPKG

400 BJavaScriptView Raw
1'use strict';
2
3var fs = require('fs');
4var path = require('path');
5
6var testDir = __dirname;
7
8var directories = [
9 testDir + '/dialects'
10];
11
12directories.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});