import { assign } from 'ember-platform';
import channelScenario from 'web-client/mirage/scenarios/channel';

export default function(server, scenarioOptions = {}) {
  let videoOptions = assign({}, scenarioOptions);

  if (!videoOptions.channel) {
    videoOptions.channel = channelScenario(server, videoOptions.channelName);
  }

  return server.create('video', videoOptions);
}
