'use strict';

const BaseStep = require('./base-step');

module.exports = class VoidStep extends BaseStep {
  start() { return new Promise(() => {}); }
};

'use strict';

const BaseStep = require('./base-step');

module.exports = class VoidStep extends BaseStep {
  constructor(options, action) {
    super(options);
    this.action = action;
  }
  start() {
    this.action && this.action();
    return new Promise(() => {});
  }
};

Add an action function to void steps so as to execute code on start
Add an action function to void steps so as to execute code on start

It does not alter the step behaviour, it's just a way to trigger 
additional actions when needed
