<commit_before>const chai = require('chai');
const chaiHttp = require('chai-http');
const cheerio = require('cheerio');
const app = require('../../server');
const constants = require('../../app/lib/constants');

const expect = chai.expect;

chai.use(chaiHttp);

describe('app', () => {
  describe('Schema.org information', () => {
    it('should be contained in the page', (done) => {
      chai.request(app)
      .get(`${constants.SITE_ROOT}/41772`)
      .end((err, res) => {
        expect(err).to.equal(null);
        expect(res).to.have.status(200);

        const $ = cheerio.load(res.text);
        const jsonLdText = $('script[type="application/ld+json"]').text();

        const jsonLd = JSON.parse(jsonLdText);
        expect(jsonLd['@context']).to.equal('http://schema.org');
        expect(jsonLd['@type']).to.equal('Physician');
        expect(jsonLd.name).to.equal('<NAME>');
        expect(jsonLd.telephone).to.equal('01287 619611');
        expect(jsonLd.email).to.equal('<EMAIL>');
        expect(jsonLd.identifier).to.equal('A81005');
        expect(jsonLd.address['@type']).to.equal('PostalAddress');
        expect(jsonLd.address.streetAddress).to.equal('Guisborough');
        expect(jsonLd.address.addressLocality).to.equal('');
        expect(jsonLd.address.postalCode).to.equal('TS14 7DJ');
        expect(jsonLd.geo['@type']).to.equal('GeoCoordinates');
        expect(jsonLd.geo.latitude).to.equal('54.532600402832');
        expect(jsonLd.geo.longitude).to.equal('-1.05542838573456');
        expect(jsonLd.url).to.equal('http://www.springwoodsurgery.co.uk/');
        expect(jsonLd.isAcceptingNewPatients).to.equal('true');
        done();
      });
    });
  });
});<commit_msg>:arrows_clockwise: Alpabetise properties for better readability<commit_after>const chai = require('chai');
const chaiHttp = require('chai-http');
const cheerio = require('cheerio');
const app = require('../../server');
const constants = require('../../app/lib/constants');

const expect = chai.expect;

chai.use(chaiHttp);

describe('app', () => {
  describe('Schema.org information', () => {
    it('should be contained in the page', (done) => {
      chai.request(app)
      .get(`${constants.SITE_ROOT}/41772`)
      .end((err, res) => {
        expect(err).to.equal(null);
        expect(res).to.have.status(200);

        const $ = cheerio.load(res.text);
        const jsonLdText = $('script[type="application/ld+json"]').text();

        const jsonLd = JSON.parse(jsonLdText);
        expect(jsonLd['@context']).to.equal('http://schema.org');
        expect(jsonLd['@type']).to.equal('Physician');
        expect(jsonLd.address['@type']).to.equal('PostalAddress');
        expect(jsonLd.address.streetAddress).to.equal('Guisborough');
        expect(jsonLd.address.addressLocality).to.equal('');
        expect(jsonLd.address.postalCode).to.equal('TS14 7DJ');
        expect(jsonLd.email).to.equal('<EMAIL>');
        expect(jsonLd.geo['@type']).to.equal('GeoCoordinates');
        expect(jsonLd.geo.latitude).to.equal('54.532600402832');
        expect(jsonLd.geo.longitude).to.equal('-1.05542838573456');
        expect(jsonLd.identifier).to.equal('A81005');
        expect(jsonLd.isAcceptingNewPatients).to.equal('true');
        expect(jsonLd.name).to.equal('<NAME>');
        expect(jsonLd.telephone).to.equal('01287 619611');
        expect(jsonLd.url).to.equal('http://www.springwoodsurgery.co.uk/');
        done();
      });
    });
  });
});
{'fraction_non_alphanumeric': 0.20484708597807272, 'fraction_numerical': 0.03231390652048471, 'mean_word_length': 3.456298200514139, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4803390', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1164, 'n_words': 127}