Skip to content

Commit

Permalink
Use separate package for spec tests generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Puzrin committed Dec 20, 2014
1 parent abaf1e3 commit 8f28856
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 51 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"eslint-plugin-nodeca": "^1.0.0",
"istanbul": "*",
"jade": "^1.6.0",
"markdown-it-testgen": "~ 0.1.0",
"marked": "0.3.2",
"stylus": "^0.49.1",
"mocha": "*",
Expand Down
4 changes: 2 additions & 2 deletions test/commonmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
var path = require('path');


var utils = require('./utils');
var generate = require('markdown-it-testgen');


describe('CommonMark', function () {
var md = require('../')('commonmark');

utils.addTests(path.join(__dirname, 'fixtures/commonmark/good.txt'), md);
generate(path.join(__dirname, 'fixtures/commonmark/good.txt'), md);
});
6 changes: 3 additions & 3 deletions test/markdown-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
var path = require('path');


var utils = require('./utils');
var generate = require('markdown-it-testgen');


describe('markdownit', function () {
describe('markdown-it', function () {
var md = require('../')('full', {
html: true,
langPrefix: '',
typographer: true,
linkify: true
});

utils.addTests(path.join(__dirname, 'fixtures/markdown-it'), md);
generate(path.join(__dirname, 'fixtures/markdown-it'), md);
});
46 changes: 0 additions & 46 deletions test/utils.js

This file was deleted.

0 comments on commit 8f28856

Please sign in to comment.