<commit_before>/* global describe, it */

var expect = require('chai').expect;
var sinon = require('sinon');
var factory = require('../../../../app/http/handlers/authorize/processtransaction');


describe('http/handlers/authorize/processtransaction', function() {
  
  it('should export factory function', function() {
    expect(factory).to.be.a('function');
  });
  
  describe.only('processTransaction', function() {
    
    describe('that requires login', function() {
      function service(txn) {
        txn.prompt('login');
      }
      serviceSpy = sinon.spy(service);
    
      var allow, info;
      before(function(done) {
        var txn = {
          client: {
            id: 's6BhdRkqt3',
            name: '<NAME>',
            redirectURIs: [
              'https://client.example.com/cb'
            ]
          },
          redirectURI: 'https://client.example.com/cb',
          req: {
            type: 'code',
            clientID: 's6BhdRkqt3'
          }
        }<commit_msg>Remove only from test case.<commit_after>/* global describe, it */

var expect = require('chai').expect;
var sinon = require('sinon');
var factory = require('../../../../app/http/handlers/authorize/processtransaction');


describe('http/handlers/authorize/processtransaction', function() {
  
  it('should export factory function', function() {
    expect(factory).to.be.a('function');
  });
  
  describe('processTransaction', function() {
    
    describe('that requires login', function() {
      function service(txn) {
        txn.prompt('login');
      }
      serviceSpy = sinon.spy(service);
    
      var allow, info;
      before(function(done) {
        var txn = {
          client: {
            id: 's6BhdRkqt3',
            name: '<NAME>',
            redirectURIs: [
              'https://client.example.com/cb'
            ]
          },
          redirectURI: 'https://client.example.com/cb',
          req: {
            type: 'code',
            clientID: 's6BhdRkqt3'
          }
        }
{'fraction_non_alphanumeric': 0.15567674764501735, 'fraction_numerical': 0.0039662865642042635, 'mean_word_length': 1.9985141158989599, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '823999', 'n_tokens_mistral': 609, 'n_tokens_neox': 603, 'n_words': 108}