<commit_before>const graphqlTester = require('graphql-tester')
const {expect} = require('chai')

const test = graphqlTester.tester({
  url: 'http://localhost:4000/graphql'
})

describe('api' , () => {
  it('should respond with session id', done => {
    test('{sessionId}').then(response => {
      expect(response.success).to.be.ok
      expect(response.status).to.equal(200)
      expect(response.data.sessionId).to.not.equal('')
      return done()
    })
  })
})<commit_msg>Add integration test for sessionId<commit_after>const graphqlTester = require('graphql-tester')
const {expect} = require('chai')

const test = graphqlTester.tester({
  url: 'http://localhost:4000/graphql'
})

describe('api' , () => {
  it('should respond with session id', done => {
    test('{sessionId}').then(response => {
      expect(response.success).to.be.ok
      expect(response.status).to.equal(200)
      expect(response.data.sessionId).to.not.equal('')
      return done()
    })
  })
  it('should give out unique session ids', done => {
    test('{sessionId}').then(response1 => {
      expect(response1.success).to.be.ok
      expect(response1.status).to.equal(200)
      test('{sessionId}').then(response2 => {
        expect(response1.success).to.be.ok
        expect(response1.status).to.equal(200)
        expect(response1.data.sessionId).to.not.equal(response2.data.sessionId)
        return done()
      })
    })
  })
})
{'fraction_non_alphanumeric': 0.17758985200845667, 'fraction_numerical': 0.019732205778717406, 'mean_word_length': 3.536741214057508, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '5418407', 'n_tokens_mistral': 478, 'n_tokens_neox': 461, 'n_words': 68}