Permalink
Browse files

Try to fix vows trouble on to-html-test

  • Loading branch information...
1 parent 00e590d commit beb5a2f37d4f6009f7b0ccbb521ed62834834a2d @daitangio committed Jan 20, 2017
Showing with 18 additions and 10 deletions.
  1. +3 −1 .gitignore
  2. +9 −2 RELEASE_HISTORY
  3. +6 −7 test/to-html-test.js
View
@@ -5,4 +5,6 @@ setup.sh
obj/
bin/Microsoft.NodejsTools.WebRole.dll
renderTest.html
-.vs/
+.vs/
+org-parser-debug.log
+npm-debug.log
View
@@ -3,13 +3,20 @@
* RELEASE NOTES :releaseNotes:
** ORG_MODE_PARSER_0.1.3 :dev:
Code name: Beauty
-Still in developement
-Planned stuff:
+ Fixed empty header issue
+ Code Cleanup
+ Fixed vows bugs, unit tests works flawless
+ Migration from jade to pug2 (new name of jade)
++ Added optional logging framework (winston)
++ Startd evaluting integration with
+https://github.com/mooz/org-js/
+
+*** KNOWN MINOR PROBLEMS
+On Node 7.x vows 0.8 fails on some tests (to-html tests). Anyway it seems only a
+a problem of unit testing.
+
+
** ORG_MODE_PARSER_0.1.2 :published:
Code name: Tetzuya
View
@@ -25,11 +25,10 @@ vows.describe('OrgMode Html plugin').addBatch({
var that = this;
// Callback issue see
// https://github.com/vowsjs/vows/issues/187
- orgParser.makelist("./test/htmlTest.org", function(n) {
- that.callback(null,n);
- });
+ orgParser.makelistNode("./test/htmlTest.org", that.callback );
+
},
- 'begin_src test': function (n) {
+ 'begin_src test': function (err,n) {
//console.log("JUST HERE");
//console.dir(n);
var q = new orgParser.OrgQuery(n);
@@ -41,18 +40,18 @@ vows.describe('OrgMode Html plugin').addBatch({
,sc.toHtml());
},
- 'css tag':function(n){
+ 'css tag':function(err,n){
var q = new orgParser.OrgQuery(n);
assert.equal('<h1 class="section-number-1 tag tag-tagTest1" >Tag test</h1><p>Simple tag test\n</p>',
q.selectTag("tagTest1").toHtml());
},
- 'css todo and tag':function(n){
+ 'css todo and tag':function(err,n){
var q = new orgParser.OrgQuery(n);
assert.equal('<h1 class="section-number-1 todo todo-TODO tag tag-tagTest2" >Tag master and TODO Test</h1><p>This node test the TODO and tag css class.\n</p>',
q.selectTag("tagTest2").toHtml());
},
- 'full rendering':function(n){
+ 'full rendering':function(err, n){
var fs=require("fs");
fs.writeFileSync( "./renderTest.html", (new orgParser.OrgQuery(n)).toHtml({
fullHtml:true,

0 comments on commit beb5a2f

Please sign in to comment.