<commit_before>describe('auth', function() {
  describe('#authenticate', function() {
    describe('succesful authentication', function() {
      beforeEach(function() {
        this.callback = sinon.spy();
        this.onRequest = sinon.spy();
        mockExec(1, {username: 'antman', credential: 'Xcd4r234234fdfa_dfsadf3', expirationDate: 234234234}, this.onRequest);
      });

      describe('without scope', function() {
        beforeEach(function() {
          spotify.authenticate('aRandomClientId1234', 'http://tok.en', this.callback);
        });

        it('should send the "streaming" scope to native', function() {
          expect(this.onRequest).to.have.been.calledWith([
            'SpotifyPlugin', 'authenticate', ['aRandomClientId1234', 'http://tok.en', ['streaming']]<commit_msg>really fixed spec now<commit_after>describe('auth', function() {
  describe('#authenticate', function() {
    describe('succesful authentication', function() {
      beforeEach(function() {
        this.callback = sinon.spy();
        this.onRequest = sinon.spy();
        this.result = {username: 'antman', credential: 'Xcd4r234234fdfa_dfsadf3', expirationDate: 234234234};
        mockExec(1, this.result, this.onRequest);
      });

      describe('without scope', function() {
        beforeEach(function() {
          spotify.authenticate('aRandomClientId1234', 'http://tok.en', this.callback);
        });

        it('should send the "streaming" scope to native', function() {
          expect(this.onRequest).to.have.been.calledWith([
            'SpotifyPlugin', 'authenticate', ['aRandomClientId1234', 'http://tok.en', ['streaming']]
{'fraction_non_alphanumeric': 0.16068167985392576, 'fraction_numerical': 0.03164942178940962, 'mean_word_length': 3.4795640326975477, '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': '4420252', 'n_tokens_mistral': 530, 'n_tokens_neox': 474, 'n_words': 86}