<commit_before>
var should = require('should')
var app = require('../../../purest/config/app')
var user = require('../../../purest/config/user')
var config = require('../../../purest/config/providers')
var purest = require('../')


describe('request', () => {
  it('__default alias', (done) => {
    var twitter = purest({
      provider: 'twitter', config: config,
      key: app.twitter.key, secret: app.twitter.secret
    })

    twitter
      .select('users/show')
      .where({screen_name: '_simov'})
      .auth(user.twitter.token, user.twitter.secret)
      .callback((err, res, body) => {
        should.equal(body.screen_name, '_simov')
        done()
      })
      .submit()
  })
})<commit_msg>Update client test<commit_after>
var t = require('assert')
var app = require('../../../purest/config/app')
var user = require('../../../purest/config/user')
var config = require('../../../purest/config/providers')
var purest = require('../')(require('@request/client'))


describe('request', () => {
  it('__default alias', (done) => {
    var twitter = purest({
      provider: 'twitter', config: config,
      key: app.twitter.key, secret: app.twitter.secret
    })

    twitter
      .select('users/show')
      .where({screen_name: '_simov'})
      .auth(user.twitter.token, user.twitter.secret)
      .callback((err, res, body) => {
        t.equal(body.screen_name, '_simov')
        done()
      })
      .submit()
  })

  it.skip('specific alias', () => {
    var yandex = purest({provider: 'yandex'})

    yandex
      .query('login')
      .auth(app.yandex.token)
      .callback((err, res, body) => {
        debugger
        if (err) {
          console.log(err)
        }
        console.log(body)
      })
  })
})
{'fraction_non_alphanumeric': 0.20600115406809003, 'fraction_numerical': 0.0, 'mean_word_length': 2.406679764243615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5347207', 'n_tokens_mistral': 575, 'n_tokens_neox': 556, 'n_words': 107}