mirror of
https://github.com/flynx/test.js.git
synced 2025-12-26 21:31: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",
|
||||
"version": "1.6.1",
|
||||
"version": "1.6.2",
|
||||
"description": "experimental test runner....",
|
||||
"main": "test.js",
|
||||
"bin": {
|
||||
|
||||
15
test.js
15
test.js
@ -679,15 +679,20 @@ async function(spec, chain, stats, mod_chain_length=1){
|
||||
.filter(function(s){
|
||||
return typeof(setups[s]) == 'function'
|
||||
&& (setup == '*' || setup == s) })
|
||||
// XXX this breaks if mod_queue is empty...
|
||||
var queue =
|
||||
chain_length != 1 ?
|
||||
test_queue
|
||||
.map(function(t){
|
||||
return mod_queue
|
||||
.map(function(m){
|
||||
return setup_queue
|
||||
.map(function(s){
|
||||
return [s, m, t] }) }) })
|
||||
return mod_queue.length == 0 ?
|
||||
setup_queue
|
||||
.map(function(s){
|
||||
return [[s, [], t]] })
|
||||
: mod_queue
|
||||
.map(function(m){
|
||||
return setup_queue
|
||||
.map(function(s){
|
||||
return [s, m, t] }) }) })
|
||||
.flat(2)
|
||||
: []
|
||||
// NOTE: we are not running these via .map(..) to keep things in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user