mirror of
https://github.com/flynx/test.js.git
synced 2025-12-27 05:41:58 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
058db76618
commit
31eb2f4b19
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-test",
|
"name": "ig-test",
|
||||||
"version": "1.6.1",
|
"version": "1.6.2",
|
||||||
"description": "experimental test runner....",
|
"description": "experimental test runner....",
|
||||||
"main": "test.js",
|
"main": "test.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|||||||
15
test.js
15
test.js
@ -679,15 +679,20 @@ async function(spec, chain, stats, mod_chain_length=1){
|
|||||||
.filter(function(s){
|
.filter(function(s){
|
||||||
return typeof(setups[s]) == 'function'
|
return typeof(setups[s]) == 'function'
|
||||||
&& (setup == '*' || setup == s) })
|
&& (setup == '*' || setup == s) })
|
||||||
|
// XXX this breaks if mod_queue is empty...
|
||||||
var queue =
|
var queue =
|
||||||
chain_length != 1 ?
|
chain_length != 1 ?
|
||||||
test_queue
|
test_queue
|
||||||
.map(function(t){
|
.map(function(t){
|
||||||
return mod_queue
|
return mod_queue.length == 0 ?
|
||||||
.map(function(m){
|
setup_queue
|
||||||
return setup_queue
|
.map(function(s){
|
||||||
.map(function(s){
|
return [[s, [], t]] })
|
||||||
return [s, m, t] }) }) })
|
: mod_queue
|
||||||
|
.map(function(m){
|
||||||
|
return setup_queue
|
||||||
|
.map(function(s){
|
||||||
|
return [s, m, t] }) }) })
|
||||||
.flat(2)
|
.flat(2)
|
||||||
: []
|
: []
|
||||||
// NOTE: we are not running these via .map(..) to keep things in
|
// NOTE: we are not running these via .map(..) to keep things in
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user