separate tests for different aspects of parser

master
Matt Huntington 10 years ago
parent 5b5ef138cc
commit 0528c1a67f

@ -19,23 +19,3 @@ describe("parser", function () {
}); });
}); });
}); });
describe("parser", function () {
it("should render lists", function (done) {
fs.readFile('tests/input/lists.txt', 'utf8',function(err, input){
fs.readFile('tests/output/lists.html', 'utf8',function(err, output){
expect(converter(input)+'\n').toBe(output);
done();
});
});
});
});
describe("parser", function (done) {
it("should render paragraphs and headers", function (done) {
fs.readFile('tests/input/single_lines.txt', 'utf8',function(err, input){
fs.readFile('tests/output/single_lines.html', 'utf8',function(err, output){
expect(converter(input)+'\n').toBe(output);
done();
});
});
});
});

@ -0,0 +1,13 @@
var fs = require('fs');
var converter = require('../index.js');
describe("parser", function () {
it("should render lists", function (done) {
fs.readFile('tests/input/lists.txt', 'utf8',function(err, input){
fs.readFile('tests/output/lists.html', 'utf8',function(err, output){
expect(converter(input)+'\n').toBe(output);
done();
});
});
});
});

@ -0,0 +1,13 @@
var fs = require('fs');
var converter = require('../index.js');
describe("parser", function (done) {
it("should render paragraphs and headers", function (done) {
fs.readFile('tests/input/single_lines.txt', 'utf8',function(err, input){
fs.readFile('tests/output/single_lines.html', 'utf8',function(err, output){
expect(converter(input)+'\n').toBe(output);
done();
});
});
});
});
Loading…
Cancel
Save