lib/html_formatter.js
function getScenario(scenario, isPassed, steps) {
        var template = grunt.file.read(templates.scenarioTemplate),
            scenarioTemplate;

        scenarioTemplate = grunt.template.process(template, {
            data: {
                status: isPassed ? statuses.PASSED : statuses.FAILED,
                name: scenario.keyword + ': ' + scenario.name,
                steps: steps
            }
        });
        return scenarioTemplate;
    }
function getScenario(scenario, isPassed, steps) {
        var template = grunt.file.read(templates.scenarioTemplate),
            scenarioTemplate;

        scenarioTemplate = grunt.template.process(template, {
            data: {
                status: isPassed ? statuses.PASSED : statuses.FAILED,
                name: scenario.keyword + ': ' + scenario.name,
                steps: steps
            }
        });
        return scenarioTemplate;
    }
function getScenario ( scenario , isPassed , steps ) { var template = grunt . file . read ( templates . scenarioTemplate ) , scenarioTemplate ; scenarioTemplate = grunt . template . process ( template , { data : { status : isPassed ? statuses . PASSED : statuses . FAILED , name : scenario . keyword + ': ' + scenario . name , steps : steps } } ) ; return scenarioTemplate ; }
Return html code of scenario element based on scenario template
@param scenario - object which contains step data
@param isPassed = flag which is true when all steps in scenario are passed otherwise is false
@returns string
Return html code of scenario element based on scenario template