<commit_before>var play = require(libDir + '/actions/play');

describe('Play Action', function(){
  beforeEach(function() {
    var player, ui;

    this.services = {};

    this.player = fakeRadiodan('player');
    this.ui     = fakeRadiodan('ui');
    this.subject = play.create(this.player, this.ui, this.services, null);

    this.subject.transition = sinon.spy();
  });

  describe('determining the station to play', function(){
    it('uses the given stationId', function() {
      var stationId = sinon.stub(),
          determined = this.subject.determineStation(stationId);

      assert.equal(determined, stationId);<commit_msg>Stub eventBus in play action tests<commit_after>var play = require(libDir + '/actions/play');

describe('Play Action', function(){
  beforeEach(function() {
    var player, ui;

    this.services = {};

    this.player = fakeRadiodan('player');
    this.ui     = fakeRadiodan('ui');
    this.eventBus = { emit: sinon.spy() };
    this.subject = play.create(this.player, this.ui, this.services, this.eventBus);

    this.subject.transition = sinon.spy();
  });

  describe('determining the station to play', function(){
    it('uses the given stationId', function() {
      var stationId = sinon.stub(),
          determined = this.subject.determineStation(stationId);

      assert.equal(determined, stationId);
{'fraction_non_alphanumeric': 0.1497405485544848, 'fraction_numerical': 0.0, 'mean_word_length': 3.6391752577319587, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7217031', 'n_tokens_mistral': 411, 'n_tokens_neox': 395, 'n_words': 89}