function hasStubInjection()

in apps/mountebank-mock/mountebank-source/src/models/dryRunValidator.js [134:144]


    function hasStubInjection (stub) {
        const hasResponseInjections = stub.responses.some(response => {
                const hasDecorator = hasBehavior(response, 'decorate'),
                    hasWaitFunction = hasBehavior(response, 'wait', value => typeof value === 'string');

                return response.inject || hasDecorator || hasWaitFunction || hasPredicateGeneratorInjection(response);
            }),
            hasPredicateInjections = Object.keys(stub.predicates || {}).some(predicate => stub.predicates[predicate].inject),
            hasAddDecorateBehaviorInProxy = stub.responses.some(response => response.proxy && response.proxy.addDecorateBehavior);
        return hasResponseInjections || hasPredicateInjections || hasAddDecorateBehaviorInProxy;
    }