mirror of
https://github.com/flynx/test.js.git
synced 2026-10-03 12:51:38 +00:00
Compare commits
No commits in common. "130e7c6c1ac3c755f4f221bff4852212a58d1bc9" and "e822179b108436344c701d270b8dbc947075fc40" have entirely different histories.
130e7c6c1a
...
e822179b10
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-test",
|
||||
"version": "1.6.7",
|
||||
"version": "1.6.5",
|
||||
"description": "experimental test runner....",
|
||||
"main": "test.js",
|
||||
"bin": {
|
||||
|
||||
26
test.js
26
test.js
@ -488,17 +488,15 @@ function(spec, chain, mod_chain_length=1){
|
||||
object.deepKeys(tests)
|
||||
.filter(function(t, i, l){
|
||||
return typeof(tests[t]) == 'function'
|
||||
// skip methods starting with '_'...
|
||||
&& t[0] != '_'
|
||||
// skip blank tests if we have other tests unless
|
||||
// explicitly specified...
|
||||
&& ((t == '-'
|
||||
&& chain.test != t
|
||||
&& l.length > 1) ?
|
||||
false
|
||||
: (chain == '**'
|
||||
|| chain.test == '*'
|
||||
|| chain.test == t) ) })
|
||||
// skip blank tests if we have other tests unless
|
||||
// explicitly specified...
|
||||
&& ((t == '-'
|
||||
&& chain.test != t
|
||||
&& l.length > 1) ?
|
||||
false
|
||||
: (chain == '**'
|
||||
|| chain.test == '*'
|
||||
|| chain.test == t) ) })
|
||||
var mod_queue = []
|
||||
if(mod_chain_length > 0){
|
||||
if(chain.mod instanceof Array){
|
||||
@ -507,8 +505,6 @@ function(spec, chain, mod_chain_length=1){
|
||||
mod_queue = object.deepKeys(modifiers)
|
||||
.filter(function(m){
|
||||
return typeof(modifiers[m]) == 'function'
|
||||
// skip methods starting with '_'...
|
||||
&& m[0] != '_'
|
||||
&& (chain == '**'
|
||||
|| chain.mod == '*'
|
||||
|| chain.mod == m) })
|
||||
@ -527,8 +523,6 @@ function(spec, chain, mod_chain_length=1){
|
||||
var setup_queue = object.deepKeys(setups)
|
||||
.filter(function(s){
|
||||
return typeof(setups[s]) == 'function'
|
||||
// skip methods starting with '_'...
|
||||
&& s[0] != '_'
|
||||
&& (chain == '**'
|
||||
|| chain.setup == '*'
|
||||
|| chain.setup == s) })
|
||||
@ -555,8 +549,6 @@ function(spec, chain, mod_chain_length=1){
|
||||
Object.keys(cases)
|
||||
.filter(function(s){
|
||||
return typeof(cases[s]) == 'function'
|
||||
// skip methods starting with '_'...
|
||||
&& s[0] != '_'
|
||||
&& (chain == '**'
|
||||
|| chain.setup == '*'
|
||||
|| chain.setup == s) })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user