Skip to content

Commit

Permalink
Fixed tests for latest node
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Sep 21, 2010
1 parent 4efa4f3 commit 424de96
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions 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');

0 comments on commit 424de96

Please sign in to comment.