[ospec] Allow more than one o.only() test

This commit is contained in:
Pierre-Yves Gérardy 2018-06-01 19:12:58 +02:00 committed by Pierre-Yves Gérardy
parent a23216b987
commit 14695c9cda
2 changed files with 10 additions and 4 deletions

View file

@ -50,11 +50,16 @@ o("o.only", function(done) {
oo.only(".only()", function() {
oo(2).equals(2)
}, true)
oo.only("another .only()", function(done) {
done("that fails")
}, true)
})
oo.run(function(results){
o(results.length).equals(1)
o(results.length).equals(2)
o(results[0].pass).equals(true)
o(results[1].pass).equals(false)
done()
})
})