<commit_before>var request = require ('supertest')
var test = require ('tape')
var server = require('../server.js')

test('api conection', (t) => {
  request(server)
    .get('/api/v1/accounts/1/transactions')
    .expect('Content-Type', "/json/")
    .expect(200)
    .end(function(err, res) {
      t.error(err, "this is an error :(  :")
    })
})

test('typeof id', (t) => {
  request(server)
    .get('/api/v1/accounts/1/transactions')
    .expect('Content-Type', "/json/")
    .expect(200)
    .end(function(err, res) {
      t.error(err, "this is an error :(  :")
      t.equal(res.data.account, )
    })
})

var expected = {
  account:
    {
      id: 1,
      transactions:[
        {<commit_msg>test is working<commit_after>var request = require ('supertest')
var test = require ('tape')
var server = require('../server.js')

test('api conection', (t) => {
  request(server)
    .get('/api/v1/accounts/1/transactions')
    .expect('Content-Type', "/json/")
    .expect(200)
    .end(function(err, res) {
      t.error(err, "this is an error :(  :")
      t.end()
    })
})

test('typeof id', (t) => {
  request(server)
    .get('/api/v1/accounts/1/transactions')
    .expect('Content-Type', "/json/")
    .expect(200)
    .end(function(err, res) {
      t.error(err, "this is an error :(  :")
      t.equal(res.data.account)
      t.end()
    })
})

var expected = {
  account:
    {
      id: 1,
      transactions:[
        {
{'fraction_non_alphanumeric': 0.20543175487465182, 'fraction_numerical': 0.01532033426183844, 'mean_word_length': 2.5220588235294117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7608149', 'n_tokens_mistral': 542, 'n_tokens_neox': 523, 'n_words': 100}