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