[ospec] don't allocate task for tests that will be skipped in o.only mode, fix stack overflow
This commit is contained in:
parent
277f35fb3a
commit
53597871b8
2 changed files with 11 additions and 12 deletions
|
|
@ -37,8 +37,14 @@ if (typeof process !== "undefined") {
|
|||
o("o.only", function(done) {
|
||||
var oo = o.new()
|
||||
|
||||
oo.spec("won't run", function() {
|
||||
oo("nope, skipped", function() {
|
||||
o(true).equals(false)
|
||||
})
|
||||
})
|
||||
|
||||
oo.spec("ospec", function() {
|
||||
oo("skipped", function() {
|
||||
oo("skipped as well", function() {
|
||||
oo(true).equals(false)
|
||||
})
|
||||
oo.only(".only()", function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue