Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
70 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
var fs = require('fs'); | ||
var Rewriter = require('../lib/jsmd/rewriter'); | ||
|
||
describe('jsmd', function() { | ||
it('compiles files as expected', function() { | ||
var base = __dirname + '/compile/'; | ||
test('compiles files as expected', function() { | ||
var base = __dirname + '/compile/'; | ||
|
||
fs.readdirSync(base).forEach(function(file) { | ||
if (!/\.md$/.test(file)) return; | ||
var md = fs.readFileSync(base + file, 'utf8'); | ||
new Rewriter(md).compile(function(compiled) { | ||
var expected = fs.readFileSync(base + file.replace(/md$/, 'js'), 'utf8'); | ||
compiled.should.eq(expected.trim()); | ||
}); | ||
fs.readdirSync(base).forEach(function(file) { | ||
if (!/\.md$/.test(file)) return; | ||
var md = fs.readFileSync(base + file, 'utf8'); | ||
new Rewriter(md).compile(function(compiled) { | ||
var expected = fs.readFileSync(base + file.replace(/md$/, 'js'), 'utf8'); | ||
compiled.should.eq(expected.trim()); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
```js | ||
require('../../package.json'); | ||
require('mocha'); | ||
require('chai'); | ||
false; // => false | ||
false // => false; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.