var marked = require('../lib/index')
  , should = require('should')

describe('marked', function() {
  
  describe('module', function() {
    it('should export render', function() {
      marked.render.should.be.an.instanceOf(Function);
    })
    it('should export renderFile', function() {
      marked.renderFile.should.be.an.instanceOf(Function);
    })
    it('should alias __express to renderFile', function() {
      marked.__express.should.be.an.instanceOf(Function);
      marked.__express.should.be.equal(marked.renderFile);
    })
  })
  
  describe('renderFile', function() {
    
    it('should render h1', function(done) {
      marked.renderFile(__dirname + '/fixtures/hello.md', {}, function(err, str) {
        if (err) return done(err);
        str.should.be.equal('<h1 id="hello">Hello</h1>\n');
        done();
      });
    })
    
    it('should error when rendering file that does not exist', function(done) {
      marked.renderFile(__dirname + '/fixtures/not-found.md', {}, function(err, str) {
        err.should.be.an.instanceOf(Error);
        should.not.exist(str)
        done();
      });
    })
    
  })
  
})

@@ -82,44 +82,14 @@
 rked
-', function() %7B%0A  %0A  describe('modul
+-engin
 e', 
@@ -103,16 +103,17 @@
 n() %7B%0A  
+%0A
   it('sh
@@ -142,34 +142,32 @@
 unction() %7B%0A    
- 
- 
 marked.render.sh
@@ -195,35 +195,31 @@
 (Function);%0A
-  
   %7D)%0A  
- 
- 
 it('should e
@@ -242,34 +242,32 @@
 ', function() %7B%0A
-  
     marked.rende
@@ -307,25 +307,21 @@
 ction);%0A
-  
   %7D)%0A
-  
   it('sh
@@ -370,26 +370,24 @@
 ion() %7B%0A    
-  
 marked.__exp
@@ -426,18 +426,16 @@
 ction);%0A
-  
     mark
@@ -483,23 +483,16 @@
 rFile);%0A
-    %7D)%0A
   %7D)%0A  %0A

Clarify tests.