UNPKG

277 BJavaScriptView Raw
1var fs = require('fs');
2var path = require('path');
3
4/**
5 * Import specs
6 */
7
8let where = './test/specs';
9if (fs.existsSync(where)) {
10 fs.readdirSync(where).forEach((file) => {
11 if (path.extname(file) === '.js') {
12 require(path.join('.' + where, file));
13 }
14 });
15}