markrun-test

0.1.0 • Public • Published

markrun-test

Build Status NPM version NPM downloads

var markrun = require('markrun')
var test = require('markrun-test')
describe('markrun-test', function() {
    describe('read&eql', function() {
        it("should return {html:'',md:'', path: '/Users/...'}", function() {
            var file = test.read(__dirname, 'basic', 'some')
            test.eql(
                markrun('**strong**'),
                file.html,
                file.path,
                // write html file
                true
            )
        })
    })
})
 

output: basic

read(arguments)

var test = require('markrun-test')
var file = test.read(__dirname, 'basic', 'some')
/*
{
    html: '<!DOCTYPE html>\...<strong>strong</strong></p></body>\n</html>',
    md: '**strong**\n',
    path: '/Users/nimo/Documents/git/markrun-test/basic/some'
}
*/

eql(output, should, path, writeHTMLFile)

test.eql(
    markrun('**strong**'),
    file.html,
    file.path,
    // write html file
    true
)

Readme

Keywords

Package Sidebar

Install

npm i markrun-test

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nimojs