import { Factory } from 'ember-cli-mirage';
import getServer from '../get-server';

export default Factory.extend({
  _numStreams: 0,
  streams() {
    let streams = [];
    for (let j=0; j<this._numStreams; j++) {
      let stream = getServer().create('stream', { name: `recently-watched-${j}` });
      streams.push({ stream });
    }
    return streams;
  }
});
