export default ngModule => {
  describe('home.routes', () => {
    beforeEach(window.module(ngModule.name));

    let $state;

    beforeEach(inject(_$state_ => {
      $state = _$state_;
    }));

    it('should have a home route', () => {
      let list = $state.get().map(item => {
        return item.name;
      });

      /* eslint-disable no-unused-expressions */
      list.includes('home').should.be.true;
    });
  });
};

export default ngModule => {
  describe('home.routes', () => {
    beforeEach(window.module(ngModule.name));

    let $state;

    beforeEach(inject(_$state_ => {
      $state = _$state_;
    }));

    it('should have a home route', () => {
      let list = $state.get().map(item => {
        return item.name;
      });

      /* eslint-disable no-unused-expressions */
      list.indexOf('home').should.not.equal(-1);
    });
  });
};

Use Array indexOf instead of includes - breaks PhantomJS
Use Array indexOf instead of includes - breaks PhantomJS
