<commit_before>import assert from 'assert';
import { applyFixtures } from '../../../support/fixtures';
import { initRecurly, testBed } from '../../../support/helpers';
import BraintreeStrategy from '../../../../lib/recurly/risk/three-d-secure/strategy/braintree';
import actionToken from '../../../server/fixtures/tokens/action-token-braintree.json';
import Promise from 'promise';

describe.only('BraintreeStrategy', function () {
  this.ctx.fixture = 'threeDSecure';

  applyFixtures();

  beforeEach(function (done) {
    const recurly = this.recurly = initRecurly();
    const risk = recurly.Risk();
    const threeDSecure = this.threeDSecure = risk.ThreeDSecure({ actionTokenId: 'action-token-test' });
    this.target = testBed().querySelector('#three-d-secure-container');
    this.sandbox = sinon.createSandbox();
    this.isIE = !!document.documentMode;

    if (this.isIE) window.Promise = Promise;
    this.exampleResult = {
      nonce: 'braintree-test-3ds-nonce'
    };
    this.threeDSecureInstance = {
      verifyCard: sinon.stub().returns(this.exampleResult)
    };
    this.braintree = {
      client: {
        create: sinon.stub().resolves()
      },
      threeDSecure: {
        create: sinon.stub().returns(this.threeDSecureInstance)
      }
    };<commit_msg>no more only<commit_after>import assert from 'assert';
import { applyFixtures } from '../../../support/fixtures';
import { initRecurly, testBed } from '../../../support/helpers';
import BraintreeStrategy from '../../../../lib/recurly/risk/three-d-secure/strategy/braintree';
import actionToken from '../../../server/fixtures/tokens/action-token-braintree.json';
import Promise from 'promise';

describe('BraintreeStrategy', function () {
  this.ctx.fixture = 'threeDSecure';

  applyFixtures();

  beforeEach(function (done) {
    const recurly = this.recurly = initRecurly();
    const risk = recurly.Risk();
    const threeDSecure = this.threeDSecure = risk.ThreeDSecure({ actionTokenId: 'action-token-test' });
    this.target = testBed().querySelector('#three-d-secure-container');
    this.sandbox = sinon.createSandbox();
    this.isIE = !!document.documentMode;

    if (this.isIE) window.Promise = Promise;
    this.exampleResult = {
      nonce: 'braintree-test-3ds-nonce'
    };
    this.threeDSecureInstance = {
      verifyCard: sinon.stub().returns(this.exampleResult)
    };
    this.braintree = {
      client: {
        create: sinon.stub().resolves()
      },
      threeDSecure: {
        create: sinon.stub().returns(this.threeDSecureInstance)
      }
    };
{'fraction_non_alphanumeric': 0.162890625, 'fraction_numerical': 0.00078125, 'mean_word_length': 3.2541528239202657, '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': '6738114', 'n_tokens_mistral': 817, 'n_tokens_neox': 814, 'n_words': 138}