<commit_before>// Load in dependencies
import {expect} from 'chai';
import * as httpUtils from './utils/http';

// Start our tests
describe('A request to POST /graphql server', function () {
  httpUtils.graphql({
    body: `
      query {
        status
      }
    `,
    expectedStatusCode: 200
  });

  it('has no errors', function () {
     // Asserted by `expectedStatusCode`
  });
  it('has expected content', function () {
    expect(this.json).to.deep.equal({data: {status: 'OK'}});
  });
});

describe('A GraphQL request about authenticated content', function () {
  describe('from an authenticated user', function () {
    httpUtils.session.init().login()
      .graphql({
        body: `
          query {
            whoami
          }
        `,
        expectedStatusCode: 200
      });

    it('receives authenticated content', function () {
      expect(this.json).to.deep.equal({data: {whoami: '<EMAIL>'}});
    });
  });<commit_msg>Skipping auth request for now<commit_after>// Load in dependencies
import {expect} from 'chai';
import * as httpUtils from './utils/http';

// Start our tests
describe('A request to POST /graphql server', function () {
  httpUtils.graphql({
    body: `
      query {
        status
      }
    `,
    expectedStatusCode: 200
  });

  it('has no errors', function () {
     // Asserted by `expectedStatusCode`
  });
  it('has expected content', function () {
    expect(this.json).to.deep.equal({data: {status: 'OK'}});
  });
});

describe.skip('A GraphQL request about authenticated content', function () {
  describe('from an authenticated user', function () {
    httpUtils.session.init().login()
      .graphql({
        body: `
          query {
            whoami
          }
        `,
        expectedStatusCode: 200
      });

    it('receives authenticated content', function () {
      expect(this.json).to.deep.equal({data: {whoami: '<EMAIL>'}});
    });
  });
{'fraction_non_alphanumeric': 0.1566892243623113, 'fraction_numerical': 0.006246746486205101, 'mean_word_length': 2.5461254612546127, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6850726', 'n_tokens_mistral': 588, 'n_tokens_neox': 562, 'n_words': 142}