cucumber
Version:
The official JavaScript implementation of Cucumber.
25 lines (20 loc) • 771 B
JavaScript
require('../../support/spec_helper');
describe("Cucumber.Runtime.SkippedStepResult", function () {
var Cucumber = requireLib('cucumber');
var skippedStepResult, step, payload;
beforeEach(function () {
skippedStepResult = createSpy("base step result");
spyOn(Cucumber.Runtime, 'StepResult').andReturn(skippedStepResult);
step = createSpy("step");
payload = {step: step};
skippedStepResult = Cucumber.Runtime.SkippedStepResult(payload);
});
it("is skipped", function () {
expect(skippedStepResult.isSkipped()).toBeTruthy();
});
describe("constructor", function () {
it("instantiates a step result", function () {
expect(Cucumber.Runtime.StepResult).toHaveBeenCalledWith(payload);
});
});
});