Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed tests for latest node

  • Loading branch information...
commit 424de969f8c6cad099b6d26f96784a212d5a11a5 1 parent 4efa4f3
@tj tj authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 test.js
View
13 test.js
@@ -1,7 +1,12 @@
-var assert = require('assert'),
- fs = require('fs'),
- markdown = require('./build/markdown')
+var assert = require('assert')
+ , fs = require('fs')
+ , markdown = require('./build/default/markdown');
assert.ok(markdown.version.match(/^\d+\.\d+\.\d+$/), 'version is improperly formatted')
-assert.equal(fs.readFileSync('test/test.html'), markdown.parse(fs.readFileSync('test/test.md')))
+assert.equal(
+ fs.readFileSync('test/test.html', 'utf8')
+ , markdown.parse(fs.readFileSync('test/test.md', 'utf8'))
+ );
+
+console.log('all good');
Please sign in to comment.
Something went wrong with that request. Please try again.