1 |
|
2 |
|
3 | const opts = { ui: 'bdd' }
|
4 | const params = new URLSearchParams(location.search)
|
5 |
|
6 | for (const opt of ['ui', 'reporter', 'timeout']) {
|
7 | if (params.has(opt)) opts[opt] = params.get(opt)
|
8 | }
|
9 |
|
10 | mocha.setup(opts)
|
11 | const suite= params.get('suite') || 'test/suite'
|
12 | require.async(suite, function() {
|
13 | mocha.run()
|
14 | })
|