<commit_before>'use strict';

var Cylon = require('cylon');
var RobotDisco = source("adaptor");
Cylon.config({
  logging: {level: 'warn'},
  api: {port:3000, ssl: false}
})

// The API must be running in order to be discoverable
Cylon.api();

// Define a robot with this adaptor
var robot = Cylon.robot({
  name: 'cylon-disco-testbot',
  connections: {
    disco: {adaptor: 'robot-disco', port: 12345, secret:'hand-shake'}
  }
});
var adaptor = robot.connections.disco;

describe("Cylon.Adaptors.RobotDisco", function() {

  it("has an adaptor", function() {
    expect(adaptor).to.be.instanceOf(Cylon.Adaptor);
  });

  it('starts up nicely', function(done) {
    robot.start(done);
  })


});<commit_msg>Changed adaptor test from integration to unit<commit_after>'use strict';

var Cylon = require('cylon');
var StubAdaptor = source("adaptor");

describe("Cylon.Adaptors.RobotDisco", function() {
  var adaptor = new StubAdaptor();

  it("has an adaptor", function() {
    expect(adaptor).to.be.instanceOf(Cylon.Adaptor);
  });

  it("Calls the connect callback", function(done) {
    adaptor.connect(done);
  });

  it("Calls the disconnect callback", function(done) {
    adaptor.disconnect(done);
  });

});
{'fraction_non_alphanumeric': 0.1674917491749175, 'fraction_numerical': 0.007425742574257425, 'mean_word_length': 4.48868778280543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2726308', 'n_tokens_mistral': 442, 'n_tokens_neox': 421, 'n_words': 97}