Skip to content

Commit 539390b

Browse files
committed
Update mdast
1 parent fd746f8 commit 539390b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"istanbul": "^0.3.0",
3131
"jscs": "^1.0.0",
3232
"jscs-jsdoc": "^1.0.0",
33-
"mdast": "^0.26.0",
33+
"mdast": "^1.0.0",
3434
"mdast-github": "^0.3.0",
3535
"mdast-lint": "^0.4.0",
3636
"mdast-toc": "^0.5.1",

test/index.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,26 @@ var mdast = require('mdast');
1111
var zone = require('..');
1212
var 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

1825
describe('mdast-zone(options)', function () {
1926
it('should throw without `options`', function () {
20-
assert.throws(function () {
27+
throws(function () {
2128
zone();
2229
}, /Missing `name` in `options`/);
2330
});
2431

2532
it('should throw without `options.name`', function () {
26-
assert.throws(function () {
33+
throws(function () {
2734
zone({});
2835
}, /Missing `name` in `options`/);
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
*/
3744
function 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

Comments
 (0)