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()
    })
  })
})

@@ -442,11 +442,453 @@
 %7D)%0A  %7D)%0A
+  it('should give out unique session ids', done =%3E %7B%0A    test('%7BsessionId%7D').then(response1 =%3E %7B%0A      expect(response1.success).to.be.ok%0A      expect(response1.status).to.equal(200)%0A      test('%7BsessionId%7D').then(response2 =%3E %7B%0A        expect(response1.success).to.be.ok%0A        expect(response1.status).to.equal(200)%0A        expect(response1.data.sessionId).to.not.equal(response2.data.sessionId)%0A        return done()%0A      %7D)%0A    %7D)%0A  %7D)%0A
 %7D)%0A

Add integration test for sessionId