Skip to content

Commit

Permalink
Rebase and use options pragma in test file
Browse files Browse the repository at this point in the history
  • Loading branch information
arv committed Aug 22, 2016
1 parent 7f9813a commit 76b3135
Show file tree
Hide file tree
Showing 8 changed files with 879 additions and 663 deletions.
6 changes: 3 additions & 3 deletions test/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,14 @@ test('fatal error', options, function (t) {
t.ok(err.toString().match(/Unexpected token/), 'reports syntax error');
t.end();
}, false);
}, options);
});

test('build --document-exported', function (t) {

documentation(['build fixture/document-exported.input.js --document-exported -f md'], {}, function (err, data) {
t.error(err);

var outputfile = path.join(__dirname, 'fixture', 'document-exported.output.enabled.md');
var outputfile = path.join(__dirname, 'fixture', 'document-exported.output.md');
if (process.env.UPDATE) {
fs.writeFileSync(outputfile, data, 'utf8');
}
Expand All @@ -356,4 +356,4 @@ test('build --document-exported', function (t) {
t.equal(data, expect);
t.end();
}, false);
});
}, options);
2 changes: 2 additions & 0 deletions test/fixture/document-exported.input.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Options: {"documentExported": true}

export class Class {
classMethod() {}
get classGetter() {}
Expand Down
Loading

0 comments on commit 76b3135

Please sign in to comment.