{"size": 793, "ext": "js", "max_stars_repo_path": "test/test.js", "max_stars_repo_name": "sbyrnes/leakproof", "max_stars_repo_stars_event_min_datetime": "2015-11-05T02:54:18.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-22T21:17:51.000Z", "max_issues_repo_path": "test/test.js", "max_issues_repo_name": "sbyrnes/leakproof", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/test.js", "max_forks_repo_name": "sbyrnes/leakproof", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.3235294118, "max_line_length": 66, "alphanum_fraction": 0.6620428752}
/**
 * Tests for the Leakproof leak detection protection.
 */
var LeakProofer = require('../leakproof.js');

// Test parsing and reassembling a string.
exports['test textParsing#string'] = function(beforeExit, assert){
  var leakproofer = new LeakProofer();

  var input = "This is a test, but only a test.";

  leakproofer.parse(input);

  console.dir(leakproofer);

  var output = leakproofer.toString();

  assert.equal(input, output);
};

// Test parsing and reassembling a file.
exports['test textParsing#file'] = function(beforeExit, assert){

    // var leakproofer = new LeakProofer();
    //
    // var input = fs.readFileSync(filename, "utf-8");
    //
    // LeakProofer.parse(input);
    //
    // var output = LeakProofer.toString();
    //
    // assert.equal(input, output);
};
