<commit_before>
var fs = require('fs');
var Path = require('path');
var should = require('should');
var githubStylePage = require('../lib/index');

var markdownFilePath = './README.md';
var targetDir = './test/';
var deleteTempFile = true;

describe('github-style-page', function() {

  it('githubStylePage(path, targetDir, callback) works', function(done) {
    githubStylePage(markdownFilePath, targetDir, function() {
      deleteTempFile && deleteFile(targetDir + 'README.html');
      done();
    });
  });

  it('githubStylePage(path, targetDir, options, callback) works', function(done) {
    githubStylePage(markdownFilePath, targetDir, {saveFileName: 'abc'}, function() {
      deleteTempFile && deleteFile(targetDir + 'abc.html');
      done();
    });
  });

  it('githubStylePage(markdownString, targetDir, {isContent: true}, callback) works', function(done) {
    var markdownString = '## Options';
    var markdownStringResult = '<h2 id="options">Options</h2>\n';

    githubStylePage(markdownString, targetDir, {
      isContent: true,
      saveFileName: 'abc2'
    }, function(result) {
      result.should.equal(markdownStringResult);
      deleteTempFile && deleteFile(targetDir + 'abc2.html');
      done();
    });
  });

  it('template project works', function(done) {
    githubStylePage(markdownFilePath, targetDir, {<commit_msg>update test case<commit_after>
var fs = require('fs');
var Path = require('path');
var should = require('should');
var githubStylePage = require('../lib/index');

var markdownFilePath = './README.md';
var targetDir = './test/';
var deleteTempFile = true;

describe('github-style-page', function() {

  it('githubStylePage(path, targetDir, callback) works', function(done) {
    githubStylePage(markdownFilePath, targetDir, function() {
      deleteTempFile && deleteFile(targetDir + 'README.html');
      done();
    });
  });

  it('githubStylePage(path, targetDir, options, callback) works', function(done) {
    githubStylePage(markdownFilePath, targetDir, {saveFileName: 'abc'}, function() {
      deleteTempFile && deleteFile(targetDir + 'abc.html');
      done();
    });
  });

  it('githubStylePage(markdownString, targetDir, {isContent: true}, callback) works', function(done) {
    var markdownString = '## Options';

    githubStylePage(markdownString, targetDir, {
      isContent: true,
      saveFileName: 'abc2'
    }, function() {
      deleteTempFile && deleteFile(targetDir + 'abc2.html');
      done();
    });
  });

  it('template project works', function(done) {
    githubStylePage(markdownFilePath, targetDir, {
{'fraction_non_alphanumeric': 0.15919629057187018, 'fraction_numerical': 0.00231839258114374, 'mean_word_length': 4.382536382536382, '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': '1820064', 'n_tokens_mistral': 782, 'n_tokens_neox': 748, 'n_words': 163}