parent
14a761cef4
commit
f401bbc9d3
@ -0,0 +1,13 @@
|
||||
var fs = require('fs');
|
||||
var converter = require('../index.js');
|
||||
|
||||
describe("links", function () {
|
||||
it("should multiply render links", function (done) {
|
||||
fs.readFile('tests/links.txt', 'utf8',function(err, input){
|
||||
fs.readFile('tests/output/links.html', 'utf8',function(err, output){
|
||||
expect(converter(input)+'\n').toBe(output);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -1,6 +0,0 @@
|
||||
describe("multiplication", function () {
|
||||
it("should multiply 2 and 3", function () {
|
||||
var product = 6;
|
||||
expect(product).toBe(6);
|
||||
});
|
||||
});
|
||||
@ -0,0 +1,11 @@
|
||||
<ul>
|
||||
<li>
|
||||
this is a list
|
||||
<ul>
|
||||
<li>
|
||||
go to this guy: <a href="http://www.google.com">http://www.google.com</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>this is a link in a paragraph with https: <a href="https://www.google.com">https://www.google.com</a></p>
|
||||
Loading…
Reference in new issue