fix boolean inversion in Spec.Mocha for describe.only

This commit is contained in:
KtorZ 2017-06-30 22:43:22 +02:00
parent 9c145f91c5
commit 751b940437
No known key found for this signature in database
GPG Key ID: 3F72E8BC2894C015

View File

@ -36,7 +36,7 @@ exports.describe = function (only) {
return function (name) {
return function (nested) {
return function () {
var f = only ? describe : describe.only;
var f = only ? describe.only : describe;
f(name, function () {
nested();
});