import { assign } from 'ember-platform';
import channelScenario from './channel';
import followScenario from './follow';

export default function(server, _options) {
  let options = assign({
    name: 'abcdef',
    channelName: 'counterpit'
  }, _options);

  let name = options.name;

  let channel = channelScenario(server, options.channelName);
  let target = server.create('target-stream', {
    channel,
    id: channel.name
  });

  followScenario(server, { channel, name });

  return server.create('host', { name, target });
}
