UNPKG

cucumber

Version:

The official JavaScript implementation of Cucumber.

30 lines (22 loc) 623 B
function HookStep(keyword) { var Cucumber = require('../../cucumber'); var self = Cucumber.Ast.Step(keyword, HookStep.NAME, HookStep.UNDEFINED_URI, HookStep.UNDEFINED_LINE); var hook; self.isHidden = function isHidden() { return true; }; self.hasUri = function hasUri() { return false; }; self.setHook = function setHook(newHook) { hook = newHook; }; self.getStepDefinition = function getStepDefinition() { return hook; }; return self; } HookStep.NAME = undefined; HookStep.UNDEFINED_URI = undefined; HookStep.UNDEFINED_LINE = undefined; module.exports = HookStep;