@@ -11,19 +11,26 @@ var mdast = require('mdast');
1111var zone = require ( '..' ) ;
1212var fixtures = require ( './fixture' ) ;
1313
14+ /*
15+ * Methods.
16+ */
17+
18+ var equal = assert . strictEqual ;
19+ var throws = assert . throws ;
20+
1421/*
1522 * Tests.
1623 */
1724
1825describe ( 'mdast-zone(options)' , function ( ) {
1926 it ( 'should throw without `options`' , function ( ) {
20- assert . throws ( function ( ) {
27+ throws ( function ( ) {
2128 zone ( ) ;
2229 } , / M i s s i n g ` n a m e ` i n ` o p t i o n s ` / ) ;
2330 } ) ;
2431
2532 it ( 'should throw without `options.name`' , function ( ) {
26- assert . throws ( function ( ) {
33+ throws ( function ( ) {
2734 zone ( { } ) ;
2835 } , / M i s s i n g ` n a m e ` i n ` o p t i o n s ` / ) ;
2936 } ) ;
@@ -32,16 +39,16 @@ describe('mdast-zone(options)', function () {
3239/**
3340 * Describe a single fixture.
3441 *
35- * @param {Object } fixture
42+ * @param {Object } fixture - Test context.
3643 */
3744function describeFixture ( fixture ) {
3845 var processor = mdast ( ) . use ( fixture . test ( zone ) ) ;
3946
4047 describe ( fixture . name , function ( ) {
41- processor . process ( fixture . input , function ( err , doc ) {
48+ processor . process ( fixture . input , function ( err , file , doc ) {
4249 if ( fixture . output ) {
4350 it ( 'should stringify ' + fixture . name , function ( done ) {
44- assert ( doc === fixture . output ) ;
51+ equal ( doc , fixture . output ) ;
4552
4653 done ( err ) ;
4754 } ) ;
0 commit comments