<commit_before>require("babel-core/register");
const assert = require("assert"),
  https = require("https"),
  fs = require("fs"),
  ws = require("ws");

  //Can import client library this way, but `new WebSocket` will not work"
  // as well, you need to run `gulp test` to compile a non-browserified  of
  // version the client library.
  // fusion = require("/Users/dalanmiller/repos/fusion/client/dist/test.js");

//Is my head screwed on correctly
describe('Array', function() {
  describe('#indexOf()', function () {
    it('should return -1 when the value is not present', function () {
      assert.equal(-1, [1,2,3].indexOf(5));
      assert.equal(-1, [1,2,3].indexOf(0));
      assert.equal(0, [1,2,3].indexOf(1));
    });
  });
});

describe("Should be able to successfully load client lib from server", () => {

    it("Response should return 200", () => {
      https.get("https://localhost:31420/fusion.js", (res) => {
        assert.equal(res.statusCode, 200);
      });
    });

    it("Response body should == actual code from file", () => {
      https.get("https://localhost:31420/fusion.js", (res) => {
        assert.equal(res.data, code);
      });
    });

});

// describe("Should be able to make connection to server", () => {
//
//   it("Connection should be successful", () => {
//     var Fusion = new fusion.Fusion("localhost:31420");
//
//   })
// });<commit_msg>Forgot a thing :sweat_smile:<commit_after>require("babel-core/register");
const assert = require("assert"),
  https = require("https"),
  fs = require("fs"),
  ws = require("ws");

  //Can import client library this way, but `new WebSocket` will not work"
  // as well, you need to run `gulp test` to compile a non-browserified  of
  // version the client library.
  // fusion = require("/Users/dalanmiller/repos/fusion/client/dist/test.js");

//Is my head screwed on correctly
describe('Array', function() {
  describe('#indexOf()', function () {
    it('should return -1 when the value is not present', function () {
      assert.equal(-1, [1,2,3].indexOf(5));
      assert.equal(-1, [1,2,3].indexOf(0));
      assert.equal(0, [1,2,3].indexOf(1));
    });
  });
});

describe("Should be able to successfully load client lib from server", () => {

    it("Response should return 200", () => {
      https.get("https://localhost:31420/fusion.js", (res) => {
        assert.equal(res.statusCode, 200);
      });
    });

    it("Response body should == actual code from file", () => {
      https.get("https://localhost:31420/fusion.js", (res) => {
        const code = fs.readFileSync("../client/dist/build.js");
        assert.equal(res.data, code);
      });
    });

});

// describe("Should be able to make connection to server", () => {
//
//   it("Connection should be successful", () => {
//     var Fusion = new fusion.Fusion("localhost:31420");
//
//   })
// });
{'fraction_non_alphanumeric': 0.19531795946890287, 'fraction_numerical': 0.02585604472396925, 'mean_word_length': 3.09585121602289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '4697016', 'n_tokens_mistral': 937, 'n_tokens_neox': 878, 'n_words': 230}